-
Notifications
You must be signed in to change notification settings - Fork 10
Add contributor templates, PR labeler, and release-note categories #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9a92020
ci: add backend-aware issue templates
frazane 8c349f6
ci: add pull request template with cross-backend checklist
frazane 86c84aa
ci: categorize auto-generated release notes by label
frazane d049fca
ci: auto-label PRs by changed path
frazane 374d744
ci: clarify PR checklist — install extras for full backend coverage, …
frazane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,53 @@ | ||
| name: Bug report | ||
| description: Report incorrect behavior or a crash in scoringrules | ||
| labels: ["bug"] | ||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| Thanks for reporting! scoringrules runs the same scoring code across | ||
| multiple array backends, so the backend and versions below are essential. | ||
| - type: textarea | ||
| id: what-happened | ||
| attributes: | ||
| label: What happened? | ||
| description: What did you observe, and what did you expect instead? | ||
| placeholder: "crps_ensemble returns NaN where a finite score is expected…" | ||
| validations: | ||
| required: true | ||
| - type: textarea | ||
| id: reproducer | ||
| attributes: | ||
| label: Minimal reproducer | ||
| description: A self-contained snippet that triggers the bug. | ||
| render: python | ||
| validations: | ||
| required: true | ||
| - type: dropdown | ||
| id: backend | ||
| attributes: | ||
| label: Backend | ||
| description: Which array backend exhibits the bug? | ||
| multiple: true | ||
| options: | ||
| - numpy | ||
| - numba | ||
| - jax | ||
| - torch | ||
| validations: | ||
| required: true | ||
| - type: input | ||
| id: python-version | ||
| attributes: | ||
| label: Python version | ||
| placeholder: "3.13" | ||
| validations: | ||
| required: true | ||
| - type: input | ||
| id: sr-version | ||
| attributes: | ||
| label: scoringrules version | ||
| description: "Output of `python -c 'import scoringrules; print(scoringrules.__version__)'`" | ||
| placeholder: "0.10.0" | ||
| validations: | ||
| required: true |
This file contains hidden or 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 @@ | ||
| blank_issues_enabled: false |
This file contains hidden or 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,24 @@ | ||
| name: Feature request | ||
| description: Suggest a new score, backend, or capability | ||
| labels: ["enhancement"] | ||
| body: | ||
| - type: textarea | ||
| id: problem | ||
| attributes: | ||
| label: Problem / motivation | ||
| description: What are you trying to do that scoringrules doesn't support today? | ||
| validations: | ||
| required: true | ||
| - type: textarea | ||
| id: proposal | ||
| attributes: | ||
| label: Proposed solution | ||
| description: What would the API or behavior look like? Cite a reference if it's a known scoring rule. | ||
| validations: | ||
| required: false | ||
| - type: textarea | ||
| id: alternatives | ||
| attributes: | ||
| label: Alternatives considered | ||
| validations: | ||
| required: false |
This file contains hidden or 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,10 @@ | ||
| ## Summary | ||
|
|
||
| <!-- What does this PR do and why? --> | ||
|
|
||
| ## Checklist | ||
|
|
||
| - [ ] Tests pass across all backends — `uv sync --all-extras --dev` then `uv run pytest tests/` (exercises every installed backend: numpy, numba, jax, torch) | ||
| - [ ] New/changed numerics touch both the array-API and numba paths where applicable | ||
| - [ ] Docs / docstrings updated if public behavior changed | ||
| - [ ] A release-note label is applied (`breaking`, `feature`, `fix`, `backend`, `docs`, or `ci`) |
This file contains hidden or 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,26 @@ | ||
| core: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "scoringrules/_*.py" | ||
| - "scoringrules/core/**" | ||
|
|
||
| docs: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "docs/**" | ||
| - "**/*.md" | ||
|
|
||
| "backend:jax": | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "scoringrules/backend/jax.py" | ||
|
|
||
| "backend:torch": | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "scoringrules/backend/torch.py" | ||
|
|
||
| ci: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - ".github/**" |
This file contains hidden or 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,27 @@ | ||
| changelog: | ||
| categories: | ||
| - title: Breaking changes | ||
| labels: | ||
| - breaking | ||
| - title: New features | ||
| labels: | ||
| - feature | ||
| - enhancement | ||
| - title: Bug fixes | ||
| labels: | ||
| - fix | ||
| - bug | ||
| - title: Backend-specific | ||
| labels: | ||
| - backend | ||
| - "backend:jax" | ||
| - "backend:torch" | ||
| - title: Documentation | ||
| labels: | ||
| - docs | ||
| - title: CI / tooling | ||
| labels: | ||
| - ci | ||
| - title: Other changes | ||
| labels: | ||
| - "*" |
This file contains hidden or 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,13 @@ | ||
| name: Labeler | ||
|
|
||
| on: [pull_request_target] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| label: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/labeler@v5 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.