Skip to content

Commit 36ea230

Browse files
authored
chore: label PRs after discovery creates them (#1886)
Add PR labeling step to the update-plugins-repo-refs workflow so that newly created PRs get labeled immediately after discovery, rather than waiting for the daily scheduled label run. Assisted-by: Cursor Signed-off-by: David Festal <dfestal@redhat.com>
1 parent 2b0b7a7 commit 36ea230

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/label-mandatory-workspace-prs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
schedule:
55
- cron: '0 6 * * *' # Daily at 6:00 AM UTC
66
workflow_dispatch: # Allow manual triggering
7+
workflow_call: # Allow calling from other workflows
78

89
concurrency:
910
group: ${{ github.workflow }}

.github/workflows/update-plugins-repo-refs.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,17 @@ jobs:
206206
permissions:
207207
contents: write
208208
pull-requests: write
209+
210+
label-prs:
211+
name: Label PRs
212+
needs: [update-branches, update-release-branches, update-main-branch]
213+
if: |
214+
always() &&
215+
(needs.update-branches.result != 'skipped' ||
216+
needs.update-release-branches.result != 'skipped' ||
217+
needs.update-main-branch.result != 'skipped')
218+
uses: ./.github/workflows/label-mandatory-workspace-prs.yaml
219+
permissions:
220+
contents: read
221+
pull-requests: write
222+
issues: read

0 commit comments

Comments
 (0)