-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: 🪲 Bug Report | ||
description: Report a bug | ||
title: "bug:" | ||
labels: ["bug"] | ||
body: | ||
- type: dropdown | ||
id: Severity | ||
attributes: | ||
label: "Severity Level" | ||
options: | ||
- "severity-1 (Critical)" | ||
- "severity-2 (Minor)" | ||
- "severity-3 (Trivial)" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: What is the issue? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: Steps To Reproduce | ||
description: How can we reproduce the issue? | ||
placeholder: | | ||
1. Go to page X | ||
2. Click here | ||
3. Look there | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: Expected Results | ||
description: What do you expect to happen? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: actual | ||
attributes: | ||
label: Actual Results | ||
description: What is actually happening? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: screenshots | ||
attributes: | ||
label: Additional Screenshots/Videos | ||
description: Optional screenshots or videos that may help showcase the issue | ||
- type: dropdown | ||
id: OS | ||
attributes: | ||
label: Used OS (Operating System) | ||
description: Which operating systems you used when the issue occurred? | ||
multiple: true | ||
options: | ||
- Windows | ||
- MacOS | ||
- Android | ||
- Other (mention in the description) | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: browser | ||
attributes: | ||
label: Used Browser (For Web) | ||
description: If the issue occurred on a web page, which browser did you use? | ||
multiple: true | ||
options: | ||
- "Chrome" | ||
- "Safari" | ||
- "Edge" | ||
- "Firefox" | ||
- "Opera" | ||
- "Other (mention in the description)" | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: 💡 Feature Request | ||
description: Suggest a feature request | ||
title: "feat: " | ||
labels: ["feat"] | ||
body: | ||
- type: textarea | ||
id: what-feature | ||
attributes: | ||
label: What feature? | ||
placeholder: Add descriptions | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: screenshots | ||
attributes: | ||
label: Add screenshots | ||
placeholder: Add screenshots, mockups, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Severity Labeler | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
labeling: | ||
name: Severity Labeling | ||
|
||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
issues: write | ||
|
||
steps: | ||
- name: Run labeling script | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const issueCtx = context.payload.issue; | ||
const hasBugLabel = issueCtx.labels.some((label) => (label.name === 'bug')); | ||
const severityLabel = issueCtx.body.match(/severity-\d+/); | ||
if (hasBugLabel && severityLabel) { | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: [severityLabel[0]] | ||
}); | ||
} |