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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add changelog reminder #15459

Merged
merged 11 commits into from
Mar 21, 2023
Next Next commit
ci: add changelog reminder
  • Loading branch information
julienrbrt committed Mar 20, 2023
commit 81067327acf187dd9396c927830b5fbd349f234f
26 changes: 26 additions & 0 deletions .github/workflows/changelog-reminder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Checks if a changelog is missing in the PR diff
name: Changelog Reminder
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths: ["**/*.go"]
permissions:
pull-requests: write
jobs:
need-changelog:
name: Verify if changelog is needed
runs-on: ubuntu-latest
steps:
- name: Get
run: ${{ github.event.pull_request.title }}

remind:
name: Changelog Reminder
runs-on: ubuntu-latest
# Skip draft PRs and PRs starting with: revert, test, chore, ci, docs, style, build, refactor
if: ${{ !github.event.pull_request.draft }} && !contains(github.event.pull_request.title, 'revert') && !contains(github.event.pull_request.title, 'test') && !contains(github.event.pull_request.title, 'chore') && !contains(github.event.pull_request.title, 'ci') && !contains(github.event.pull_request.title, 'docs') && !contains(github.event.pull_request.title, 'style') && !contains(github.event.pull_request.title, 'build') && !contains(github.event.pull_request.title, 'refactor')
steps:
- uses: actions/checkout@v3
- uses: mskelton/changelog-reminder-action@v3
with:
message: "@${{ github.actor }} your pull request is missing a changelog!"