Skip to content

Commit a3f48fb

Browse files
committed
chore: harden .github to 10/10
- Add CODEOWNERS (all files → @sharon77242) - Add ISSUE_TEMPLATE/config.yml — disable blank issues, link to Discussions + README - ci.yml: add concurrency cancel-in-progress, workflow-level permissions, per-job timeout-minutes - codeql.yml: add weekly schedule, timeout-minutes, autobuild step - pr-title-linter.yml: add build + revert types, permissions block, timeout - release-please.yml: explicit config-file/manifest-file, timeout - dependabot.yml: commit-message prefix, minor/patch grouping, open-pull-requests-limit - bug_report.md: replace generic click/scroll template with Node.js code snippet + actual/expected split - PULL_REQUEST_TEMPLATE.md: add self-review checkbox
1 parent 545d640 commit a3f48fb

9 files changed

Lines changed: 69 additions & 8 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @sharon77242

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,22 @@ assignees: ''
1111
A clear and concise description of what the bug is.
1212

1313
**To Reproduce**
14-
Steps to reproduce the behavior:
15-
1. Go to '...'
16-
2. Click on '....'
17-
3. Scroll down to '....'
18-
4. See error
14+
Minimal code snippet or steps to trigger the bug:
15+
```ts
16+
import { Argus } from 'argus-apm';
17+
// ...
18+
```
1919

2020
**Expected behavior**
2121
A clear and concise description of what you expected to happen.
2222

23+
**Actual behavior**
24+
What actually happened (error message, stack trace, wrong output, etc.)
25+
2326
**Environment details:**
2427
- OS: [e.g. Ubuntu 22.04]
25-
- Node.js version: [e.g. 18.17.0]
26-
- `argus-apm` version: [e.g. 0.2.0]
28+
- Node.js version: [e.g. 22.6.0]
29+
- `argus-apm` version: [e.g. 0.4.1]
2730
- Database driver (if applicable): [e.g. pg 8.11.0]
2831

2932
**Additional context**

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Question or Discussion
4+
url: https://github.com/sharon77242/Argus/discussions
5+
about: Ask a question or start a discussion about argus-apm
6+
- name: Documentation
7+
url: https://github.com/sharon77242/Argus#readme
8+
about: Check the docs before filing an issue

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ None.
2020

2121
## Checklist
2222

23+
- [ ] Self-reviewed the diff for correctness and unintended changes
2324
- [ ] No secrets, tokens, or PEM files committed
2425
- [ ] No new `console.log` left in production code
2526
- [ ] README / CHANGELOG updated if this changes the public API or project structure

.github/dependabot.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,32 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
day: "monday"
8+
open-pull-requests-limit: 10
9+
labels:
10+
- "dependencies"
11+
commit-message:
12+
prefix: "chore"
13+
include: "scope"
14+
groups:
15+
minor-and-patch:
16+
update-types:
17+
- "minor"
18+
- "patch"
719

820
- package-ecosystem: "github-actions"
921
directory: "/"
1022
schedule:
1123
interval: "weekly"
24+
day: "monday"
25+
open-pull-requests-limit: 5
26+
labels:
27+
- "dependencies"
28+
- "github-actions"
29+
commit-message:
30+
prefix: "chore"
31+
include: "scope"
32+
groups:
33+
actions:
34+
patterns:
35+
- "*"

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@ on:
66
pull_request:
77
branches: [main]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
916
jobs:
1017
quality:
1118
name: Code Quality (Lint, Format, Typecheck)
1219
runs-on: ubuntu-latest
20+
timeout-minutes: 10
1321
steps:
1422
- uses: actions/checkout@v6
1523

@@ -37,6 +45,7 @@ jobs:
3745
test:
3846
name: Test Coverage
3947
runs-on: ubuntu-latest
48+
timeout-minutes: 15
4049
steps:
4150
- uses: actions/checkout@v6
4251

@@ -58,6 +67,7 @@ jobs:
5867
build:
5968
name: Build
6069
runs-on: ubuntu-latest
70+
timeout-minutes: 10
6171
needs: [quality, test]
6272
steps:
6373
- uses: actions/checkout@v6

.github/workflows/codeql.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ on:
55
branches: ["main"]
66
pull_request:
77
branches: ["main"]
8+
schedule:
9+
- cron: "30 1 * * 1"
810

911
jobs:
1012
analyze:
1113
name: Analyze Code
1214
runs-on: ubuntu-latest
15+
timeout-minutes: 30
1316
permissions:
1417
actions: read
1518
contents: read
@@ -24,5 +27,8 @@ jobs:
2427
with:
2528
languages: javascript-typescript
2629

30+
- name: Autobuild
31+
uses: github/codeql-action/autobuild@v3
32+
2733
- name: Perform CodeQL Analysis
2834
uses: github/codeql-action/analyze@v3

.github/workflows/pr-title-linter.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ on:
77
- edited
88
- synchronize
99

10+
permissions:
11+
pull-requests: read
12+
1013
jobs:
1114
main:
1215
name: Validate PR Title
1316
runs-on: ubuntu-latest
17+
timeout-minutes: 5
1418
steps:
1519
- uses: amannn/action-semantic-pull-request@v6
1620
env:
@@ -25,3 +29,5 @@ jobs:
2529
refactor
2630
perf
2731
test
32+
build
33+
revert

.github/workflows/release-please.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ permissions:
1212
jobs:
1313
release-please:
1414
runs-on: ubuntu-latest
15+
timeout-minutes: 10
1516
steps:
1617
- uses: googleapis/release-please-action@v5
1718
with:
18-
release-type: node
19+
config-file: release-please-config.json
20+
manifest-file: release-please-manifest.json

0 commit comments

Comments
 (0)