summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2022-10-12 15:37:00 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-11-05 14:10:01 +0100
commitb6a23ad642c80088e9ec0ed843387325541fcdf4 (patch)
tree56189666f2e48bd416430c1e806d12732903947e /.github
parenta45efc9e4b574a85176610496f2ac7ae769364bb (diff)
downloadsystemd-b6a23ad642c80088e9ec0ed843387325541fcdf4.tar.gz
ci(dev-freeze): Use GitHub Action for PR comments
GitHub Action `devel-freezer` helps with development freeze notifications during the RC phase. It will create comments using predefined messages on newly created and updated PRs when the RC tag has been released. Also, it will update comments once a new major version has been released. Documentation available at: https://github.com/redhat-plumbers-in-action/devel-freezer
Diffstat (limited to '.github')
-rw-r--r--.github/development-freeze.yml12
-rw-r--r--.github/pull_request_template.md.disabled5
-rw-r--r--.github/workflows/development_freeze.yml28
3 files changed, 40 insertions, 5 deletions
diff --git a/.github/development-freeze.yml b/.github/development-freeze.yml
new file mode 100644
index 0000000000..564e5f02f1
--- /dev/null
+++ b/.github/development-freeze.yml
@@ -0,0 +1,12 @@
+# syntax - https://github.com/redhat-plumbers-in-action/devel-freezer#policy
+---
+
+policy:
+ # tags like v253-rc1, v253-rc2, etc.
+ - tags: ['^\S*-rc\d+$']
+ feedback:
+ frozen-state: |
+ An -rc1 tag has been created and a release is being prepared, so please note that PRs introducing new features and APIs will be held back until the new version has been released.
+ unfreeze-state: |
+ We had successfully released a new major release. We are no longer in a development freeze phase.
+ We will try our best to get back to your PR as soon as possible. Thank you for your patience.
diff --git a/.github/pull_request_template.md.disabled b/.github/pull_request_template.md.disabled
deleted file mode 100644
index a1333460af..0000000000
--- a/.github/pull_request_template.md.disabled
+++ /dev/null
@@ -1,5 +0,0 @@
-# CODE FREEZE NOTICE
-
-An -rc1 tag has been created and a release is being prepared, so please note that
-PRs introducing new features and APIs will be held back until the new version
-has been released.
diff --git a/.github/workflows/development_freeze.yml b/.github/workflows/development_freeze.yml
new file mode 100644
index 0000000000..7932373e86
--- /dev/null
+++ b/.github/workflows/development_freeze.yml
@@ -0,0 +1,28 @@
+# doc: https://github.com/redhat-plumbers-in-action/devel-freezer#readme
+---
+
+name: Development Freeze
+on:
+ pull_request:
+ types: [ opened, reopened, synchronize ]
+ branches: [ main ]
+
+permissions:
+ contents: read
+
+jobs:
+ freezer:
+ runs-on: ubuntu-22.04
+
+ permissions:
+ pull-requests: write
+
+ steps:
+ - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
+ with:
+ fetch-depth: 0
+
+ - name: Development Freezer
+ uses: redhat-plumbers-in-action/devel-freezer@1bce2d1d64db1a22f13cd6e4bff0b4f3847236c7
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}