Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Require a change note when PRing against hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Feb 2, 2022
1 parent 6705391 commit 18f87a4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/hotfixes-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Hotfixes
on:
pull_request:
branches:
- 'matrix-org-hotfixes'
jobs:
check-changelog:
name: Check change is described
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- run: git fetch origin ${{ github.base_ref }}

- name: Check CHANGES_HOTFIX.md has changed
run: |
# --exit-code: returns 1 if there were differences, 0 otherwise
if git diff --exit-code origin/${{ github.base_ref }} HEAD -- CHANGES_HOTFIXES.md; then
echo PRs to the hotfixes branch must update CHANGES_HOTFIXES.md
exit 1
else
echo All good
fi

0 comments on commit 18f87a4

Please sign in to comment.