summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-02-02 14:53:44 +0000
committerDavid Robertson <davidr@element.io>2022-02-02 15:29:54 +0000
commit18f87a45f4817d6b917944820ca00879fe3f7680 (patch)
tree40a7c7e0cee0a8e0788928f185099b39c36ffbaa
parentMerge branch 'release-v1.52' into matrix-org-hotfixes (diff)
downloadsynapse-18f87a45f4817d6b917944820ca00879fe3f7680.tar.xz
Require a change note when PRing against hotfixes
-rw-r--r--.github/workflows/hotfixes-changelog.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/hotfixes-changelog.yml b/.github/workflows/hotfixes-changelog.yml
new file mode 100644
index 0000000000..2a615e56f0
--- /dev/null
+++ b/.github/workflows/hotfixes-changelog.yml
@@ -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