File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Base branch checker
1
2
on : [pull_request]
2
3
3
4
permissions :
4
5
contents : read
5
6
6
7
jobs :
7
8
live_protection_job :
8
- name : Prevent unintended merge to live
9
+ name : Create comment
9
10
runs-on : ubuntu-latest
10
11
steps :
11
12
- name : Harden Runner
@@ -19,10 +20,10 @@ jobs:
19
20
with :
20
21
script : |
21
22
if (process.env.SHOULD_COMMENT == 'true') {
22
- github.issues.createComment({
23
+ github.rest. issues.createComment({
23
24
issue_number: context.issue.number,
24
25
owner: context.repo.owner,
25
26
repo: context.repo.repo,
26
- body: 'It looks like this pull request was opened on the ` live` branch by mistake. In general, PRs should target the ` main` branch .'
27
+ body: 'It looks like this pull request was opened on the live branch by mistake. In general, PRs should target main.'
27
28
})
28
29
}
You can’t perform that action at this time.
0 commit comments