Skip to content

Truly independent web browser

CI: Create a backport label for each new release branch

Jelle Raaijmakersbddbbe20f0df
diff --git a/.github/workflows/backport-labels.yml b/.github/workflows/backport-labels.yml
new file mode 100644
index 00000000000..ca8450cb5a2
--- /dev/null
+++ b/.github/workflows/backport-labels.yml
@@ -0,0 +1,26 @@
+name: Backport labels
+
+on:
+ create:
+
+jobs:
+ create-label:
+ if: >-
+ github.repository == 'LadybirdBrowser/ladybird'
+ && github.ref_type == 'branch'
+ && startsWith(github.ref_name, 'release/')
+ runs-on: blacksmith-2vcpu-ubuntu-2404
+
+ permissions:
+ issues: write
+
+ steps:
+ - name: 'Create the label for backporting to the new release branch'
+ shell: bash
+ env:
+ GH_TOKEN: ${{ github.token }}
+ REPO: ${{ github.repository }}
+ BRANCH: ${{ github.ref_name }}
+ run: |
+ gh label create "backport ${BRANCH#release/}" --repo "$REPO" --force --color 0e8a16 \
+ --description "Backport to ${BRANCH} once merged"