Skip to content

Commit

Permalink
chore: add issue template ds-6
Browse files Browse the repository at this point in the history
  • Loading branch information
KeidsID committed Jan 7, 2025
1 parent ea5a7eb commit e2f82c3
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
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
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feat-request.yml
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.
33 changes: 33 additions & 0 deletions .github/workflows/severity-labeler.yml
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]]
});
}

0 comments on commit e2f82c3

Please sign in to comment.