-
Notifications
You must be signed in to change notification settings - Fork 152
41 lines (37 loc) · 1.49 KB
/
triage-prs.yaml
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
name: Triage
on:
pull_request:
types:
- opened
- reopened
permissions:
contents: read
jobs:
pull-requests-comment:
name: Comment and Triage
# The entire job is skipped for @dependabot
if: github.repository == 'kanisterio/kanister' && github.actor != 'dependabot[bot]'
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
-
name: Comment
uses: actions-ecosystem/action-create-comment@v1.0.2
# Avoid adding a comment when the PR is on the same repo.
if: github.event.action == 'opened' && github.event.pull_request.head.repo.fork
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body: |
Thanks for submitting this pull request :tada:. The team will review it soon and get back to you.
If you haven't already, please take a moment to review our project [contributing guideline](https://github.com/kanisterio/kanister/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/kanisterio/kanister/blob/master/CODE_OF_CONDUCT.md) document.
-
name: Update status in project
uses: alex-page/github-project-automation-plus@v0.9.0
# This only works for PRs opened in the same repo and not by dependabot.
# Other PRs don't get the necessary credentials.
if: github.repository == 'kanisterio/kanister' && !github.event.pull_request.head.repo.fork
with:
repo-token: ${{ secrets.GH_TOKEN }}
project: Kanister
column: In Progress