Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check working tree and abort if not clean #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AndyOGo
Copy link
Contributor

@AndyOGo AndyOGo commented May 27, 2020

fix #35

This automatically aborts the release, if the working tree isn't clean.

Running node ./lib-release.js with uncommited changes:

馃殌  Hello Dear developer, welcome to the release assistant. 馃殌

!! Please make sure you have no changes to be commited !!

I'm getting some information....

>>> rejected | git diff --exit-code --quiet HEAD

Attention: Your working tree is not clean. I will abort the action

Please check your working tree:

git status

Running node ./lib-release.js with staged changes:

馃殌  Hello Dear developer, welcome to the release assistant. 馃殌

!! Please make sure you have no changes to be commited !!

I'm getting some information....

>>> rejected | git diff --exit-code --quiet HEAD

Attention: Your working tree is not clean. I will abort the action

Please check your working tree:

git status

@AndyOGo AndyOGo added the enhancement New feature or request label May 27, 2020
@AndyOGo AndyOGo self-assigned this May 27, 2020
@LucaMele LucaMele removed their request for review May 27, 2020 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warn of uncommitted changes
1 participant