Skip to content

Commit a1bd678

Browse files
committed
updated templates and workflows
1 parent 4a5f7d0 commit a1bd678

9 files changed

+189
-6
lines changed

.github/FUNDING.yml

-6
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: 🐛 Bug report
2+
description: Report an issue
3+
body:
4+
- type: textarea
5+
id: bug-description
6+
attributes:
7+
label: Describe the bug
8+
description: |
9+
A clear and concise description of what the bug is.
10+
11+
> [!NOTE]
12+
> _"CommonJS is not supported"_ is not a valid bug, it's a feature.
13+
value: |
14+
## What I did
15+
16+
## What I expected to happen
17+
18+
## What happened instead
19+
20+
validations:
21+
required: true
22+
- type: input
23+
id: reproduction
24+
attributes:
25+
label: Reproduction
26+
description: A minimal reproduction is **required**, otherwise the issue might be closed without further notice.
27+
placeholder: Link to reproduction repository, stackblitz, etc…
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: system-info
32+
attributes:
33+
label: System Info
34+
description: Run `npx envinfo --system --binaries --browsers`…
35+
render: Shell
36+
placeholder: …and paste the output here.
37+
validations:
38+
required: true
39+
- type: dropdown
40+
id: package-manager
41+
attributes:
42+
label: Runtime & Package Manager
43+
description: What runtime and package manager are you using?
44+
options:
45+
- node + pnpm
46+
- node + bun
47+
- node + npm
48+
- node + yarn
49+
- deno
50+
- bun
51+
- browser
52+
- other
53+
default: 0
54+
validations:
55+
required: true
56+
- type: checkboxes
57+
id: checkboxes
58+
attributes:
59+
label: A few final checks
60+
description: Let's review a few things before submitting the issue
61+
options:
62+
- label: I abide by [Code of Conduct](https://github.com/jcayzac/.github/blob/main/CODE_OF_CONDUCT.md)
63+
required: true
64+
- label: I have checked that there isn't already an issue that reports the same bug.
65+
required: true
66+
- label: The reproduction of the bug I linked to is [minimal](https://stackoverflow.com/help/minimal-reproducible-example).
67+
required: true
68+
- label: I understand that this is not a client support service, and that Open Source projects are a community effort.
69+
required: true
70+
- label: I am willing to submit a fix for this bug myself.

.github/ISSUE_TEMPLATE/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/typo.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 👀 Typo / Grammar fix
2+
description: You can just go ahead and send a PR! Thank you!
3+
labels: []
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
## PR Welcome!
9+
10+
If the typo / grammar issue is trivial and straightforward, you can help by **directly sending a quick pull request**!
11+
If you spot multiple of them, we suggest combining them into a single PR. Thanks!
12+
- type: textarea
13+
id: context
14+
attributes:
15+
label: Additional context

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
contents: read # for actions/checkout to fetch code
2323
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
2424
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
25+
if: github.repository == 'jcayzac/copepod-modules'
2526
runs-on: ubuntu-latest
2627
steps:
2728
- name: Checkout Repo
@@ -57,6 +58,7 @@ jobs:
5758
- name: Building Packages
5859
run: pnpm build
5960
test:
61+
if: github.repository == 'jcayzac/copepod-modules'
6062
runs-on: ${{ matrix.os }}
6163
strategy:
6264
matrix:

.github/workflows/issue-labeled.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# $schema: https://json.schemastore.org/github-workflow.json
2+
name: Issue Labeled
3+
4+
on:
5+
issues:
6+
types: [labeled]
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
env:
13+
FORCE_COLOR: true
14+
15+
jobs:
16+
reply-labeled:
17+
if: github.repository == 'jcayzac/copepod-modules'
18+
runs-on: ubuntu-latest
19+
permissions:
20+
issues: write
21+
steps:
22+
- name: remove triage
23+
if: contains(github.event.label.description, '(priority)') && contains(github.event.issue.labels.*.name, 'needs triage')
24+
uses: actions-cool/issues-helper@v3
25+
with:
26+
actions: remove-labels
27+
token: ${{ secrets.GITHUB_TOKEN }}
28+
issue-number: ${{ github.event.issue.number }}
29+
labels: needs triage
30+
31+
- name: needs repro
32+
if: github.event.label.name == 'needs repro'
33+
uses: actions-cool/issues-helper@v3
34+
with:
35+
actions: 'create-comment, remove-labels'
36+
token: ${{ secrets.GITHUB_TOKEN }}
37+
issue-number: ${{ github.event.issue.number }}
38+
body: |
39+
Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or [StackBlitz](https://stackblitz.com/). Issues marked with `needs repro` will be closed if they have no activity within 3 days.
40+
labels: needs triage
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# $schema: https://json.schemastore.org/github-workflow.json
2+
name: Close issues without repro
3+
4+
on:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
env:
13+
FORCE_COLOR: true
14+
15+
jobs:
16+
close-issues:
17+
if: github.repository == 'jcayzac/copepod-modules'
18+
runs-on: ubuntu-latest
19+
permissions:
20+
issues: write
21+
steps:
22+
- name: needs repro
23+
uses: actions-cool/issues-helper@v3
24+
with:
25+
actions: close-issues
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
labels: needs repro
28+
inactive-day: 3

.github/workflows/issue-opened.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# $schema: https://json.schemastore.org/github-workflow.json
2+
name: Label issues
3+
4+
on:
5+
issues:
6+
types:
7+
- reopened
8+
- opened
9+
10+
defaults:
11+
run:
12+
shell: bash
13+
14+
env:
15+
FORCE_COLOR: true
16+
17+
jobs:
18+
label_issues:
19+
runs-on: ubuntu-latest
20+
if: github.repository == 'jcayzac/copepod-modules'
21+
permissions:
22+
issues: write
23+
steps:
24+
- uses: actions/github-script@v7
25+
with:
26+
script: |
27+
github.rest.issues.addLabels({
28+
issue_number: context.issue.number,
29+
owner: context.repo.owner,
30+
repo: context.repo.repo,
31+
labels: ["needs triage"]
32+
})

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
jobs:
1818
release:
1919
name: Release
20+
if: github.repository == 'jcayzac/copepod-modules'
2021
runs-on: ubuntu-latest
2122
permissions:
2223
actions: read

0 commit comments

Comments
 (0)