forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 868 Bytes
/
Copy pathtriage-pull-requests.yml
File metadata and controls
33 lines (26 loc) · 868 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
28
29
30
31
32
33
name: Triage new pull requests
# **What it does**: Adds triage label to new pull requests in the open source repository.
# **Why we have it**: Update project board for new pull requests for triage.
# **Who does it impact**: Docs open source.
on:
# Needed in lieu of `pull_request` so that PRs from a fork can be triaged.
pull_request_target:
types:
- reopened
- opened
permissions:
contents: read
issues: write
pull-requests: write
jobs:
triage_pulls:
if: ${{ github.repository == 'github/docs' }}
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/node-npm-setup
- name: Label new pull requests with 'triage'
uses: ./.github/actions/labeler
with:
addLabels: 'triage'