-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1021 Bytes
/
label.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
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler
name: Babu Chipkae
on:
pull_request:
branches:
- '**'
issues:
types:
- reopened
- opened
jobs:
label:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
# add a triage label to newly created issues.
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write-all
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["triage"]
})