Skip to content

Commit 7624d9e

Browse files
add post merge labeler (flutter#3532)
1 parent 09d0f79 commit 7624d9e

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.github/post_merge_labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
'needs-publishing':
2+
- packages/*/**
Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
# This workflow applies labels to pull requests based on the
22
# paths that are modified in the pull request.
33
#
4-
# Edit `.github/labeler.yml` to configure labels.
4+
# Edit `.github/labeler.yml` and `.github/post_merge_labeler.yml`
5+
# to configure labels.
56
#
67
# For more information, see: https://github.com/actions/labeler
78

89
name: Pull Request Labeler
910

1011
on:
11-
- pull_request_target
12+
pull_request_target:
13+
types: [opened, synchronize, reopened, closed]
1214

1315
jobs:
1416
label:
1517
runs-on: ubuntu-latest
1618
steps:
17-
- uses: actions/labeler@main
18-
with:
19-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
20-
sync-labels: true
19+
- uses: actions/labeler@v3
20+
with:
21+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
22+
sync-labels: true
23+
24+
post_merge_label:
25+
if: github.event.action == 'closed' && github.event.pull_request.merged == true
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/labeler@v3
29+
with:
30+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
31+
configuration-path: .github/post_merge_labeler.yml

0 commit comments

Comments
 (0)