Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/auto-label.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
labelsSynonyms: {
feature: ["[Feature]"],
bug: ["[Issue]"],
documentation: ["[Documentation]"]
},
defaultLabels: ["iris"], // always add iris
includeTitle: true,
ignoreComments: true
}
52 changes: 52 additions & 0 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
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'
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"]
});
Loading