Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Bug Report
description: Report a bug or defect
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
## Type
Bug
- type: textarea
id: why
attributes:
label: Why
description: Explain the business motivation and impact with respect to current Dirac bottlenecks
validations:
required: true

- type: dropdown
id: urgency
attributes:
label: Urgency
options:
- Critical
- High
- Medium
- Low
validations:
required: true

- type: textarea
id: description
attributes:
label: Description
description: What is the bug? What is the expected vs actual behavior?
validations:
required: true

- type: textarea
id: steps
attributes:
label: Steps to Reproduce
description: How can we reproduce this issue?
validations:
required: true

- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Screenshots, error messages, environment details, etc.
validations:
required: false
49 changes: 0 additions & 49 deletions .github/ISSUE_TEMPLATE/bug.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Feature Request
description: Propose a new feature or enhancement
labels: ["feature"]
body:
- type: markdown
attributes:
value: |
## Type
Feature

- type: textarea
id: why
attributes:
label: Why
description: Explain the business motivation and impact with respect to current Dirac bottlenecks
validations:
required: true

- type: dropdown
id: urgency
attributes:
label: Urgency
options:
- Critical
- High
- Medium
- Low
validations:
required: true

- type: textarea
id: description
attributes:
label: Description
description: What feature are you proposing? What problem does it solve?
validations:
required: true
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/spike.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Spike / Investigation
description: Technical exploration or research task
labels: ["spike"]
body:
- type: markdown
attributes:
value: |
## Type
Spike

- type: textarea
id: why
attributes:
label: Why
description: Explain the business motivation and impact with respect to current Dirac bottlenecks
validations:
required: true

- type: dropdown
id: urgency
attributes:
label: Urgency
options:
- Critical
- High
- Medium
- Low
validations:
required: true

- type: textarea
id: goal
attributes:
label: Goal
description: What question(s) are we trying to answer? What do we need to learn?
validations:
required: true

- type: textarea
id: success-criteria
attributes:
label: Success Criteria
description: What does "done" look like for this investigation?
validations:
required: true
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Linked Issue
<!-- This PR must be linked to an issue -->
Closes #

## Design Decisions
<!--
What tradeoffs did you consider with respect to current constraints?
Include advice for those working on this code in the future.
Reference the bottleneck.
-->


## Checklist
- [ ] Written at least one regression test (if a bug)
- [ ] Checked for existence of or written a smoke test (if one doesn't exist)
- [ ] Read every line of code
- [ ] Started the docker container
- [ ] Checked manually that the fix works
- [ ] Added documentation of design decisions
- [ ] Written CONCISE code
25 changes: 25 additions & 0 deletions .github/workflows/check-linked-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check Linked Issue

on:
pull_request:
types: [opened, edited, synchronize]

jobs:
check-issue-link:
runs-on: ubuntu-latest
steps:
- name: Check for linked issue
uses: actions/github-script@v7
with:
script: |
const pr = context.payload.pull_request;
const body = pr.body || '';

// Check for "Closes #123", "Fixes #123", "Resolves #123", etc.
const issuePattern = /(close[sd]?|fix(es|ed)?|resolve[sd]?)\s+#\d+/i;

if (!issuePattern.test(body)) {
core.setFailed('❌ PR must be linked to an issue using "Closes #123", "Fixes #123", or "Resolves #123"');
} else {
console.log('✅ PR is properly linked to an issue');
}
Loading