From d1e0dec74a55ffc088912608bc765cef9e7a03b7 Mon Sep 17 00:00:00 2001 From: MarvinF Date: Tue, 24 Jun 2025 22:52:56 +0200 Subject: [PATCH] Update autolabel.yaml --- .github/workflows/autolabel.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/autolabel.yaml b/.github/workflows/autolabel.yaml index bec469a..1d09717 100644 --- a/.github/workflows/autolabel.yaml +++ b/.github/workflows/autolabel.yaml @@ -5,7 +5,7 @@ on: types: [opened, reopened, synchronize, edited] jobs: - label-stage-to-prod: + label-changelog-ignore: runs-on: ubuntu-latest steps: - name: Label PRs @@ -16,16 +16,10 @@ jobs: const base = context.payload.pull_request.base.ref; const head = context.payload.pull_request.head.ref; - if (base === 'sportsmanager2-prod' && head === 'sportsmanager2-stage') { + if ((base === 'sportsmanager2-prod' && head === 'sportsmanager2-stage') || (base === 'sportsmanager2-stage' && head === 'sportsmanager2-dev')) { await github.rest.issues.addLabels({ ...context.repo, issue_number: context.payload.pull_request.number, - labels: ['prod-merge'] - }); - } else if (base === 'sportsmanager2-stage' && head === 'sportsmanager2-dev') { - await github.rest.issues.addLabels({ - ...context.repo, - issue_number: context.payload.pull_request.number, - labels: ['stage-merge'] + labels: ['changelog-ignore'] }); }