Skip to content

Commit 6481731

Browse files
authored
ci: add PR labeler workflow for main/master branches (#7304)
Adds actions/labeler@v5 to automatically label pull requests: - PRs targeting main get the 'flyte2' label - PRs targeting master get the 'flyte' label Signed-off-by: Kevin Su <pingsutw@apache.org>
1 parent 38fb221 commit 6481731

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
flyte2:
2+
- base-branch: ['^main$']
3+
4+
flyte:
5+
- base-branch: ['^master$']

.github/workflows/labeler.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Pull Request Labeler"
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened, synchronize]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
label:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/labeler@v5
16+
with:
17+
configuration-path: .github/labeler.yml
18+
sync-labels: false

0 commit comments

Comments
 (0)