Skip to content

Conversation

@tkan145
Copy link
Contributor

@tkan145 tkan145 commented Feb 2, 2026

What

Enfore changelog entry on new PR

@tkan145 tkan145 requested a review from a team as a code owner February 2, 2026 09:08
@josemigallas josemigallas changed the title Enfore changelog entry on new PR Enforce changelog entry on new PR Feb 3, 2026
- 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)."

Choose a reason for hiding this comment

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

Suggested change
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') }}

Choose a reason for hiding this comment

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

Would this be correct?

Suggested change
if: ${{ !contains(github.event.*.labels.*.name, 'skip-changelog') }}
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-changelog') }}

Copy link
Contributor Author

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/**'

Choose a reason for hiding this comment

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

Why only gateway files?

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants