Skip to content

Commit 5a228e0

Browse files
committed
📝 Chore(Actions): Add merged label to merged Pull Request automatically.
1 parent 571901c commit 5a228e0

2 files changed

Lines changed: 22 additions & 25 deletions

File tree

.github/workflows/codecov.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/pr-merged.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
7+
jobs:
8+
pr-merged:
9+
if: github.event.pull_request.merged == true
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
steps:
14+
- uses: actions/github-script@v6
15+
with:
16+
script: |
17+
github.rest.issues.addLabels({
18+
issue_number: context.issue.number,
19+
owner: context.repo.owner,
20+
repo: context.repo.repo,
21+
labels: ["merged"]
22+
})

0 commit comments

Comments
 (0)