Skip to content

Commit b171e87

Browse files
authored
Add issue triage workflows (#2566)
1 parent aaacc9b commit b171e87

File tree

3 files changed

+70
-10
lines changed

3 files changed

+70
-10
lines changed

.github/workflows/auto-assign.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: auto-assign
2+
on:
3+
issues:
4+
types:
5+
- labeled
6+
7+
jobs:
8+
assign_issue:
9+
# Only run on module label colors.
10+
if: ${{ github.event.label.color == '00611d' }}
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Get Assignee
17+
uses: actions/github-script@v6
18+
id: get-assignee
19+
with:
20+
github-token: ${{secrets.GITHUB_TOKEN}}
21+
script: |
22+
const fs = require('fs');
23+
24+
// Read configuration file
25+
const config = JSON.parse(fs.readFileSync('.github/workflows/module-owners.json', 'utf8'));
26+
27+
// Find matching label in config
28+
for (const [configLabel, users] of Object.entries(config)) {
29+
if (configLabel == "${{ github.event.label.name}}") {
30+
// Select Randomly
31+
const index = Math.floor(Math.random() * users.length)
32+
const assignee = users[index % users.length];
33+
return assignee
34+
}
35+
}
36+
// Returning empty string in case a valid assignee is not found.
37+
return ""
38+
result-encoding: string
39+
40+
- name: Assign
41+
run: gh issue edit ${{ github.event.issue.number }} --add-label "triaged" --add-label "investigating" --add-assignee ${{ steps.get-assignee.outputs.result }}
42+
env:
43+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
# Ref: https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues
22
name: Close inactive issues
33
on:
4+
workflow_dispatch:
45
schedule:
5-
- cron: "30 1 * * *"
6+
- cron: "0 * * * *"
67

78
jobs:
89
stale:
910
runs-on: ubuntu-latest
1011
permissions:
1112
issues: write
1213
pull-requests: write
14+
1315
steps:
1416
- uses: actions/stale@v9
1517
with:
16-
days-before-issue-stale: 30
17-
days-before-issue-close: 15
18-
stale-issue-label: "stale"
19-
exempt-issue-labels: ""
20-
stale-issue-message: This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 15 days."
21-
close-issue-message: "This issue was closed because it has been stalled for 15 days with no activity."
22-
days-before-pr-stale: -1
23-
days-before-pr-close: -1
2418
repo-token: ${{ secrets.GITHUB_TOKEN }}
25-
debug-only: false
19+
stale-issue-message: 'Issue has not received an update in over 14 days. Adding stale label.'
20+
stale-pr-message: 'PR has not received an update in over 14 days. Adding stale label.'
21+
close-issue-message: 'This issue was closed because it has been 14 days without activity since it has been marked as stale.'
22+
close-pr-message: 'This PR was closed because it has been 14 days without activity since it has been marked as stale.'
23+
days-before-issue-stale: 14
24+
days-before-close: 14
25+
only-labels: 'waiting for feedback'
26+
labels-to-add-when-unstale: 'investigating'
27+
labels-to-remove-when-unstale: 'stale,waiting for feedback'
28+
stale-issue-label: 'stale'
29+
stale-pr-label: 'stale'

.github/workflows/module-owners.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"Generic Runtime": ["funatiq", "pcastonguay", "Shixiaowei02", "MartinMarciniszyn", "schetlur-nv", "dcampora"],
3+
"Triton Backend": ["Tabrizian", "pcastonguay", "schetlur-nv"],
4+
"LLM API/Workflow": ["Superjomn", "syuoni", "nv-guomingz", "litaotju", "QiJune"],
5+
"KV-Cache Management":["thorjohnsen", "schetlur-nv"],
6+
"Low Precision":["Tracin", "nv-guomingz", "Naveassaf"],
7+
"Speculative Decoding":["yweng0828", "nekorobov", "lfr-0531"],
8+
"Customized Kernels":["lowsfer", "PerkzZheng", "jdemouth-nvidia"],
9+
"Performance": ["kaiyux", "jiahanc", "hypdeb"],
10+
"Lora/P-tuning":["byshiue", "Naveassaf"],
11+
"Disaggregated Serving":["Shixiaowei02", "joyang-nv", "chuangz0", "schetlur-nv"],
12+
"Documentation":["nv-guomingz", "mikemckiernan"]
13+
}

0 commit comments

Comments
 (0)