-
Notifications
You must be signed in to change notification settings - Fork 171
Enforce changelog entry on new PR #1569
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
base: master
Are you sure you want to change the base?
Conversation
| - name: Check changelog existence | ||
| if: steps.changelog-file.outputs.any_changed == 'false' | ||
| run: | | ||
| echo("Please include a CHANGELOG entry. You can find it at [CHANGELOG.md](https://github.com/3scale/apicast/blob/master/CHANGELOG.md)." |
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.
| echo("Please include a CHANGELOG entry. You can find it at [CHANGELOG.md](https://github.com/3scale/apicast/blob/master/CHANGELOG.md)." | |
| echo "Please include a CHANGELOG entry. You can find it at [CHANGELOG.md](https://github.com/3scale/apicast/blob/master/CHANGELOG.md)." |
|
|
||
| jobs: | ||
| require-changelog: | ||
| if: ${{ !contains(github.event.*.labels.*.name, 'skip-changelog') }} |
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.
Would this be correct?
| if: ${{ !contains(github.event.*.labels.*.name, 'skip-changelog') }} | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-changelog') }} |
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 don't know 😄 , let me try
| pull_request: | ||
| types: [ opened, synchronize, labeled, unlabeled ] | ||
| paths: | ||
| - 'gateway/**' |
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.
Why only gateway files?
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.
Because we only care about whether the source code changes or not, everything else is optional; that is, I don't think we need an entry in CHANGELOG just because we change the CI config
What
Enfore changelog entry on new PR