-
Notifications
You must be signed in to change notification settings - Fork 8
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue66 - Add CI parameter #67
Conversation
users can specify whether or not CI scripts should be run
unit test for --ci parameter
let code; | ||
// ###### Add edited files to git ##### | ||
log.info('>>> About to add and commit package.json and CHANGELOG...'); | ||
code = shell.exec('git add package.json CHANGELOG.md').code; | ||
terminateProcess(code); | ||
|
||
// ###### Commit files ##### | ||
code = shell.exec('git commit -m "chore(release): ' + newVersion + ' [ci skip] ***NO_CI***"').code; | ||
let commitMessage = 'git commit -m "chore(release): ' + newVersion; | ||
if (!ci) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Biboba Thanks for the PR first of all. I have a few questions here:
semantic-release
has optionci
default set totrue
- it means it only adds[ci skip]
if we set it to--ci
. In your case you have the opposite condition here.- I also find very confusing the short name
ci
. I know we agreed to this variable name but what do you think if we useci-skip
orno-ci
? Second mirrors semantic-release api. - could we make it default
true
, like semantic-release. If so, we need to make it aBreaking Change
in this version and analyze the impact of the new version. - Would you mind updating the README with the new version? I know it's a duplication of the
program.options
. I am open for suggestions here too to have only one place where we modify the options and keep readme updated.
refs:
https://github.com/semantic-release/semantic-release/blob/caribou/docs/usage/configuration.md#ci
Hi @uglow how are you? If you still use this tool, feel free to give your opinion too. |
@leonardoanalista - I’m good thanks, maybe hit me up on LinkedIn for a chat. @Biboba, nice PR 👍🏻 |
Hello, Happy to make the changes. But I had a closer look to semantic-release package and this --ci option is not exactly what I thought it is : it does not involve any "[ci skip] NO_CI" message. Apologize for the confusion but still I think it would be interesting to be able to specify "NO_CI" as an option. I don't know if it changes the way you feel about this PR. Thanks for the feedback ! References: |
Thanks @Biboba for your research. Considering we are talking about different options between semantic-release and this package, we could do whatever we want here. I think now we have a better understanding of this new option.
What do you think about the points above? |
addressed by #71 |
If user specify --ci parameter, then no "[ci skip] NO_CI" is not included in commit message
It closes #66