This repository has been archived by the owner on Jun 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 300
73 lines (62 loc) · 2.46 KB
/
checklist-pr.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: "PR | Checklist"
on:
pull_request:
branches:
- develop
types: [opened, reopened]
jobs:
comment-on-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{github.event.pull_request.head.repo.full_name}}
persist-credentials: false
- name: comment on PR (support and bugfix branches)
if: contains(github.head_ref, 'support/') || contains(github.head_ref, 'bugfix/')
uses: actions/github-script@v6
with:
script: |
await github.rest.issues.createComment({
owner: "LedgerHQ",
repo: "ledger-live-desktop",
issue_number: "${{ github.event.pull_request.number }}",
body: `
Thanks for your contribution.
To be able to merge in _develop_ branch, you need to:
- [ ] pass the CI
- [ ] if needed, run \`/generate-screenshots\`
- [ ] have a dev review
- [ ] have a QA review
- [ ] if needed, \`/upgrade-llc\`
### Why /generate-screenshots ?
If your PR contains UI related changes,
it might be necessary to regenerate screenshots.
### Why /upgrade-llc ?
If your PR requires an update to the ledger-live-common library,
once the PR is merged on develop on ledger-live-common side,
you need to run \`/upgrade-llc\` to switch back to ledger-live-common@develop here before merging.
`
});
- name: comment on PR (feature branches)
if: contains(github.head_ref, 'feat/')
uses: actions/github-script@v6
with:
script: |
await github.rest.issues.createComment({
owner: "LedgerHQ",
repo: "ledger-live-desktop",
issue_number: "${{ github.event.pull_request.number }}",
body: `
Thanks for your contribution.
To be groomed for next release, you need to:
- [ ] pass the CI
- [ ] if needed, run \`/generate-screenshots\`
- [ ] have a dev review
- [ ] have a QA review
### Why /generate-screenshots ?
If your PR contains UI related changes,
it might be necessary to regenerate screenshots.
`
});