diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 4b56cea469..9984a58df6 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1 +1,6 @@ + + + +- [ ] Does not require a CHANGELOG entry diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000000..c6e87877df --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,20 @@ +name: Modify Changelog + +on: + pull_request_target: + +jobs: + + verifyChangelogIsUpdated: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ github.token }} + steps: + - name: Get Changed Files + id: changed + uses: foodee/pr-includes-file-change@master + with: + paths: ^CHANGELOG.md + - name: Set error + if: steps.changed.outputs.matched != 'true' && !contains(github.event.pull_request.body, '[x] Does not require a CHANGELOG entry') + run: echo "::error::CHANGELOG.md has not been modified. Either modify the file or check the checkbox in the body" && exit 1