File tree Expand file tree Collapse file tree 1 file changed +2
-29
lines changed
Expand file tree Collapse file tree 1 file changed +2
-29
lines changed Original file line number Diff line number Diff line change 11name : " Label PRs and auto-comment"
2-
32on :
4-
53 pull_request :
6-
74 types : [opened, reopened, synchronize]
8-
95jobs :
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+ });
You can’t perform that action at this time.
0 commit comments