From 499e8c044d508aedc9df0b7abec19f7445da8b01 Mon Sep 17 00:00:00 2001 From: OGR-67 Date: Wed, 18 Mar 2026 21:06:45 +0100 Subject: [PATCH] Add workflow to label issues as "In progress" on branch creation --- .../on-progress-on-branch-creation.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/on-progress-on-branch-creation.yml diff --git a/.github/workflows/on-progress-on-branch-creation.yml b/.github/workflows/on-progress-on-branch-creation.yml new file mode 100644 index 0000000..66b66fe --- /dev/null +++ b/.github/workflows/on-progress-on-branch-creation.yml @@ -0,0 +1,25 @@ +name: Make issue "In progress" on branch creation + +on: + create: + +jobs: + move-to-in-progress: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/github-script@v7 + with: + script: | + const branch = context.ref.replace('refs/heads/', ''); + const match = branch.match(/^(\d+)-/); + if (!match) return; + + const issueNumber = parseInt(match[1]); + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issueNumber, + labels: ['In progress'] + });