-
-
Notifications
You must be signed in to change notification settings - Fork 154
43 lines (34 loc) · 926 Bytes
/
pr-merged.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: PR Merged
on:
pull_request_target:
types: [closed]
branches:
- next
jobs:
comment-issues:
name: Comment Issues
if: >
github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'changeset')
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- run: pnpm install
- name: Add comment to issues
run: node .github/scripts/pr-merged.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}