-
Notifications
You must be signed in to change notification settings - Fork 35
53 lines (48 loc) · 1.45 KB
/
auto-label.yml
File metadata and controls
53 lines (48 loc) · 1.45 KB
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
name: Auto labeling
on:
issues:
types: [opened]
pull_request:
types: [opened]
permissions:
contents: read
issues: write
pull-requests: write
jobs:
# Label ISSUES using Renato66/auto-label
label-issues:
if: github.event_name == 'issues'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github/workflows/auto-label.json5
sparse-checkout-cone-mode: false
- uses: Renato66/auto-label@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Add ISSUES to ROCm Project #91 so they land in Todo
add-issues-to-project:
if: github.event_name == 'issues'
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v1.0.2
with:
project-url: https://github.com/orgs/ROCm/projects/91
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
# PRs: label so the project rule moves them to In Progress
label-prs:
if: github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
steps:
- name: Add iris + in-progress labels to PR
uses: actions/github-script@v7
with:
script: |
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
labels: ["iris", "in-progress"]
})