Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Add option for skipping Git working tree check #38

Conversation

dennisameling
Copy link

Fixes #37. Happy to take a different approach if the team prefers that. This at least unblocked my workflow!

@markkaylor markkaylor self-requested a review August 22, 2022 07:17
@markkaylor
Copy link
Contributor

Hi @dennisameling thank you for the pull request, I will try to review it before the end of the week.

@@ -13,7 +13,7 @@ const { migratePlugin, migrateApiFolder, migrateDependencies, migrateApplication
// Global utils
const { isPathStrapiApp, logger, isCleanGitRepo, promptUser } = require('../../lib/global/utils');

const migrate = async (type, path, pathForV4Plugin) => {
const migrate = async (type, path, pathForV4Plugin, cliOptions) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should change this to accept an object {type, path, pathForV4Plugin, cliOptions}

.action(async (path) => {
await migrate('application', path);
.action(async (path, options) => {
await migrate('application', path, undefined, options);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my other comment, then here: {type: 'application', path, cliOptions: options}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and you will have to make the update anywhere else migrate is called

@remidej remidej added the pr: enhancement This PR adds or updates some part of the codebase or features label Sep 5, 2022
@derrickmehaffy
Copy link
Member

Since there has been no update to this PR I'm going to mark it as closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: enhancement This PR adds or updates some part of the codebase or features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script not working in monorepo: Not a git repository: backend/.git
4 participants