1. Update bug/feature report template to add component selection. (#2485)
2. Add workflow to apply component label automatically
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a bug report to help us improve CUTLASS
|
|
||||||
title: "[BUG]"
|
|
||||||
labels: "? - Needs Triage, bug"
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the bug**
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
|
|
||||||
**Steps/Code to reproduce bug**
|
|
||||||
Follow this guide http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports to craft a minimal bug report. This helps us reproduce the issue you're having and resolve the issue more quickly.
|
|
||||||
|
|
||||||
**Expected behavior**
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
**Environment details (please complete the following information):**
|
|
||||||
- Environment location: [Bare-metal, Docker, Cloud(specify cloud provider)]
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context about the problem here.
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
name: Bug Report
|
||||||
|
description: Create a bug report to help us improve CUTLASS
|
||||||
|
title: "[BUG] "
|
||||||
|
labels: ["? - Needs Triage", "bug"]
|
||||||
|
assignees: []
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: dropdown
|
||||||
|
id: component
|
||||||
|
attributes:
|
||||||
|
label: Which component has the problem?
|
||||||
|
options:
|
||||||
|
- CuTe DSL
|
||||||
|
- CUTLASS C++
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: bug-report
|
||||||
|
attributes:
|
||||||
|
label: Bug Report
|
||||||
|
description: Please fill out all sections below
|
||||||
|
value: |
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
|
**Steps/Code to reproduce bug**
|
||||||
|
Follow this guide http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports to craft a minimal bug report. This helps us reproduce the issue you're having and resolve the issue more quickly.
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Environment details (please complete the following information):**
|
||||||
|
- Environment location: [Bare-metal, Docker, Cloud(specify cloud provider)]
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the problem here.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
name: Feature request
|
|
||||||
about: Suggest an idea for CUTLASS
|
|
||||||
title: "[FEA]"
|
|
||||||
labels: "? - Needs Triage, feature request"
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
|
||||||
A clear and concise description of what the problem is. Ex. I wish I could use CUTLASS to do [...]
|
|
||||||
|
|
||||||
**Describe the solution you'd like**
|
|
||||||
A clear and concise description of what you want to happen.
|
|
||||||
|
|
||||||
**Describe alternatives you've considered**
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context, code examples, or references to existing implementations about the feature request here.
|
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
name: Feature Request
|
||||||
|
description: Suggest an idea for CUTLASS
|
||||||
|
title: "[FEA] "
|
||||||
|
labels: ["? - Needs Triage", "feature request"]
|
||||||
|
assignees: []
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: dropdown
|
||||||
|
id: component
|
||||||
|
attributes:
|
||||||
|
label: Which component requires the feature?
|
||||||
|
options:
|
||||||
|
- CuTe DSL
|
||||||
|
- CUTLASS C++
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: feature-request
|
||||||
|
attributes:
|
||||||
|
label: Feature Request
|
||||||
|
description: Please fill out all sections below
|
||||||
|
value: |
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
A clear and concise description of what the problem is. Ex. I wish I could use CUTLASS to do [...]
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context, code examples, or references to existing implementations about the feature request here.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
name: Auto Label Issues
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
add-labels:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
steps:
|
||||||
|
- name: Add component label
|
||||||
|
uses: actions/github-script@v7
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const issue = context.payload.issue;
|
||||||
|
const body = issue.body || '';
|
||||||
|
|
||||||
|
// Parse the issue body to find the component selection
|
||||||
|
// GitHub renders dropdown selections as "### Which component has the problem?\n\n{selection}"
|
||||||
|
const componentMatch = body.match(/### Which component has the problem\?\s*\n\s*\n\s*(.+?)(?:\n|$)/);
|
||||||
|
|
||||||
|
if (componentMatch) {
|
||||||
|
const component = componentMatch[1].trim();
|
||||||
|
let label = '';
|
||||||
|
|
||||||
|
// Map component selections to labels
|
||||||
|
switch(component) {
|
||||||
|
case 'CuTe DSL':
|
||||||
|
label = 'CuTe DSL';
|
||||||
|
break;
|
||||||
|
case 'CUTLASS C++':
|
||||||
|
label = 'CUTLASS C++';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (label) {
|
||||||
|
await github.rest.issues.addLabels({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: issue.number,
|
||||||
|
labels: [label]
|
||||||
|
});
|
||||||
|
console.log(`Added label: ${label}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user