-
Notifications
You must be signed in to change notification settings - Fork 25
55 lines (52 loc) · 2.3 KB
/
open_actions.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
name: When Opened
on:
issues:
types:
- opened
pull_request_target:
types:
- opened
jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: Label PR
uses: actions/labeler@v5
if: github.event_name == 'pull_request_target'
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- name: 'Reviewer Checklist'
uses: actions/github-script@v7
if: github.event_name == 'pull_request_target'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Thank you for your contribution! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
- [ ] Do the proposed changes actually accomplish desired goals?
- [ ] Do the proposed changes follow the [STScI coding guidelines](https://github.com/spacetelescope/style-guides/blob/master/guides/python.md)?
- [ ] Are tests added/updated as required? If so, do they follow the [STScI testing guidelines](https://github.com/spacetelescope/style-guides/blob/master/guides/python-testing.md)?
- [ ] Are docs added/updated as required?
- [ ] Is rebase and/or squash necessary? If so, please provide the author with appropriate instructions.
- [ ] Did the CI pass? If no, are the failures related?
- [ ] Is a change log needed?`
})
- name: 'Comment Draft PR'
uses: actions/github-script@v7
if: github.event.pull_request.draft == true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thank you for your draft pull request! Do you know that you can use `[ci skip]` or `[skip ci]` in your commit messages to skip running continuous integration tests until you are ready?'
})
#- name: Special comment
# uses: pllim/action-special_pr_comment@main
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}