From f2f11e1d1d35369f9bc374bafce17f559c208f33 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 28 Jun 2023 00:01:29 +0000 Subject: [PATCH] Update PR template and add changelog verifier workflow (#642) * Update PR template and add changelog verifier workflow Signed-off-by: Matt Provost * Update changelog Signed-off-by: Matt Provost --------- Signed-off-by: Matt Provost (cherry picked from commit 22fb985f11489adaaef0d53c0ff2dabe0066a58c) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md --- .github/pull_request_template.md | 1 + .github/workflows/changelog_verifier.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/changelog_verifier.yml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 6b69426cf4..58e302c06f 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -11,6 +11,7 @@ - [ ] All tests pass - [ ] `yarn lint` - [ ] `yarn test-unit` +- [ ] Update [CHANGELOG.md](./../CHANGELOG.md) - [ ] Commits are signed per the DCO using --signoff By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. diff --git a/.github/workflows/changelog_verifier.yml b/.github/workflows/changelog_verifier.yml new file mode 100644 index 0000000000..6023992235 --- /dev/null +++ b/.github/workflows/changelog_verifier.yml @@ -0,0 +1,18 @@ +name: "Changelog Verifier" +on: + pull_request: + branches: [ '**', '!feature/**' ] + types: [opened, edited, review_requested, synchronize, reopened, ready_for_review, labeled, unlabeled] + +jobs: + verify-changelog: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + ref: ${{ github.event.pull_request.head.sha }} + + - uses: dangoslen/changelog-enforcer@v3 + with: + skipLabels: "skip-changelog"