Skip to content

Commit

Permalink
Add issue triage workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Chen <[email protected]>
  • Loading branch information
kevinch-nv committed Nov 26, 2024
1 parent 535c9cc commit a90ca05
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 13 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: auto-assign
on:
issues:
types:
- labeled

jobs:
assign_issue:
# Only run on module label colors.
if: ${{ github.event.label.color == '00611d' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Get Assignee
uses: actions/github-script@v6
id: get-assignee
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const fs = require('fs');
// Read configuration file
const config = JSON.parse(fs.readFileSync('.github/workflows/module-owners.json', 'utf8'));
// Find matching label in config
for (const [configLabel, users] of Object.entries(config)) {
if (configLabel == "${{ github.event.label.name}}") {
// Select Randomly
const index = Math.floor(Math.random() * users.length)
const assignee = users[index % users.length];
return assignee
}
}
// Returning empty string in case a valid assignee is not found.
return ""
result-encoding: string

- name: Assign
run: gh issue edit ${{ github.event.issue.number }} --add-label "triaged" --add-label "investigating" --add-assignee ${{ steps.get-assignee.outputs.result }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 17 additions & 13 deletions .github/workflows/auto_close_inactive_issues.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
# Ref: https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues
name: Close inactive issues
on:
workflow_dispatch:
schedule:
- cron: "30 1 * * *"
- cron: "0 * * * *"

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: 30
days-before-issue-close: 15
stale-issue-label: "stale"
exempt-issue-labels: ""
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."
close-issue-message: "This issue was closed because it has been stalled for 15 days with no activity."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}
debug-only: false
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Issue has not received an update in over 14 days. Adding stale label.'
stale-pr-message: 'PR has not received an update in over 14 days. Adding stale label.'
close-issue-message: 'This issue was closed because it has been 14 days without activity since it has been marked as stale.'
close-pr-message: 'This PR was closed because it has been 14 days without activity since it has been marked as stale.'
days-before-issue-stale: 14
days-before-close: 14
only-labels: 'waiting for feedback'
labels-to-add-when-unstale: 'investigating'
labels-to-remove-when-unstale: 'stale,waiting for feedback'
stale-issue-label: 'stale'
stale-pr-label: 'stale'
13 changes: 13 additions & 0 deletions .github/workflows/module-owners.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"Generic Runtime": ["funatiq", "pcastonguay", "Shixiaowei02", "MartinMarciniszyn", "schetlur-nv", "dcampora"],
"Triton Backend": ["Tabrizian", "pcastonguay", "schetlur-nv"],
"LLM API/Workflow": ["Superjomn", "syuoni", "nv-guomingz", "litaotju", "QiJune"],
"KV-Cache Management":["thorjohnsen", "schetlur-nv"],
"Low Precision":["Tracin", "nv-guomingz", "Naveassaf"],
"Speculative Decoding":["yweng0828", "nekorobov", "lfr-0531"],
"Customized Kernels":["lowsfer", "PerkzZheng", "jdemouth-nvidia"],
"Performance": ["kaiyux", "jiahanc", "hypdeb"],
"Lora/P-tuning":["byshiue", "Naveassaf"],
"Disaggregated Serving":["Shixiaowei02", "joyang-nv", "chuangz0", "schetlur-nv"],
"Documentation":["nv-guomingz", "mikemckiernan"]
}

0 comments on commit a90ca05

Please sign in to comment.