-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
CI Adds skipping to azure pipelines with commit message #19134
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
Conversation
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.
I like the general idea, but I think this PR is remove the dependency on linting success for some of the jobs, but I don't think it was intentional.
azure-pipelines.yml
Outdated
condition: | | ||
and( | ||
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | ||
ne(variables['Build.Reason'], 'Schedule') | ||
) |
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.
We should keep the dependency on linting success, no?
condition: | | |
and( | |
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | |
ne(variables['Build.Reason'], 'Schedule') | |
) | |
condition: | | |
and( | |
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | |
ne(variables['Build.Reason'], 'Schedule'), | |
succeeded('linting') | |
) |
azure-pipelines.yml
Outdated
condition: | | ||
and( | ||
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | ||
ne(variables['Build.Reason'], 'Schedule') | ||
) |
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.
condition: | | |
and( | |
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | |
ne(variables['Build.Reason'], 'Schedule') | |
) | |
condition: | | |
and( | |
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | |
ne(variables['Build.Reason'], 'Schedule'), | |
succeeded('linting') | |
) |
azure-pipelines.yml
Outdated
condition: | | ||
and( | ||
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | ||
ne(variables['Build.Reason'], 'Schedule') | ||
) |
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.
condition: | | |
and( | |
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | |
ne(variables['Build.Reason'], 'Schedule') | |
) | |
condition: | | |
and( | |
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | |
ne(variables['Build.Reason'], 'Schedule'), | |
succeeded('linting') | |
) |
azure-pipelines.yml
Outdated
condition: | | ||
and( | ||
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | ||
ne(variables['Build.Reason'], 'Schedule') | ||
) |
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.
condition: | | |
and( | |
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | |
ne(variables['Build.Reason'], 'Schedule') | |
) | |
condition: | | |
and( | |
not(contains(dependencies['git_commit']['outputs']['commit.message'], '[ci skip]')), | |
ne(variables['Build.Reason'], 'Schedule'), | |
succeeded('linting') | |
) |
Updated PR by adding |
Yes, I think this was the case previously. |
Thanks for the fix, merged! |
This PR adds the ability to use
[ci skip]
in a commit message to skip azure pipelines in pull requests.