Skip to content

Commit b45719d

Browse files
committed
Sync auto-label-comment-prs.yml from .github repo
1 parent eafd52e commit b45719d

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed
Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,27 @@
11
name: "Label PRs and auto-comment"
2-
32
on:
4-
53
pull_request:
6-
74
types: [opened, reopened, synchronize]
8-
95
jobs:
10-
116
pr_label_comment:
12-
13-
runs-on: self-hosted
14-
7+
runs-on: [self-hosted, linux, x64, big]
158
steps:
16-
179
- uses: actions/github-script@main
18-
1910
with:
20-
2111
github-token: ${{ secrets.GITHUB_TOKEN }}
22-
2312
script: |
24-
2513
const pr_number = context.payload.pull_request.number;
26-
2714
// Add label
28-
2915
await github.rest.issues.addLabels({
30-
3116
owner: context.repo.owner,
32-
3317
repo: context.repo.repo,
34-
3518
issue_number: pr_number,
36-
3719
labels: ["needs-review", "copilot"] // <-- TUNE ME
38-
3920
});
40-
4121
// Add automated comment
42-
4322
await github.rest.issues.createComment({
44-
4523
owner: context.repo.owner,
46-
4724
repo: context.repo.repo,
48-
4925
issue_number: pr_number,
50-
5126
body: "Thanks for the PR! Copilot will assist with review."
52-
53-
});
54-
27+
});

0 commit comments

Comments
 (0)