forked from adamlaska/boulder
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 823 Bytes
/
main-prs.yml
File metadata and controls
27 lines (27 loc) · 823 Bytes
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
name: move PR to main
on:
pull_request:
branches: [ master ]
types: [ opened ]
jobs:
comment_and_update:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v2
with:
script: |
github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: "This PR was created against 'master', but should be against 'main'. Updating the base branch accordingly.",
})
- uses: actions/github-script@v2
with:
script: |
github.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
base: "main",
})