Skip to content

Commit b74a9ac

Browse files
authored
Merge pull request #107 from braboj/chore/session-4-audit
chore: session 4 structural audit and CI improvements
2 parents 075cb53 + c91a1a4 commit b74a9ac

30 files changed

Lines changed: 224 additions & 92 deletions

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Bug
3+
about: Defect in existing functionality
4+
title: ""
5+
labels: bug
6+
assignees: ""
7+
---
8+
9+
**Severity:** critical | major | minor | trivial
10+
11+
## Expected
12+
[What should happen]
13+
14+
## Actual
15+
[What happens instead]
16+
17+
## Reproduce
18+
1. [Step 1]
19+
2. [Step 2]
20+
3. [Result]
21+
22+
## Environment
23+
[dev/preview/production, browser, branch]

.github/ISSUE_TEMPLATE/epic.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Epic
3+
about: Large initiative spanning multiple tasks or sessions
4+
title: ""
5+
labels: epic
6+
assignees: ""
7+
---
8+
9+
## Goal
10+
[One sentence — what does success look like?]
11+
12+
## Tasks
13+
- [ ] #XX — task description
14+
- [ ] #YY — task description
15+
16+
## Out of scope
17+
[What this epic does NOT cover]
18+
19+
## Definition of done
20+
[Measurable criteria for closing]

.github/ISSUE_TEMPLATE/git-tutorial-issue-template.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/incident.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Incident
3+
about: Production outage or degradation affecting users now
4+
title: ""
5+
labels: incident
6+
assignees: ""
7+
---
8+
9+
**Severity:** critical | major
10+
**Status:** investigating | identified | mitigating | resolved
11+
12+
## Impact
13+
[Who is affected, how severely]
14+
15+
## Timeline
16+
- [HH:MM UTC][event]
17+
- [HH:MM UTC][event]
18+
19+
## Root cause
20+
[What caused it — fill in after identified]
21+
22+
## Resolution
23+
[What fixed it — fill in after resolved]
24+
25+
## Prevention
26+
[What changes prevent recurrence — fill in after postmortem]

.github/ISSUE_TEMPLATE/spike.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Spike
3+
about: Research or exploration — output is a decision or ADR
4+
title: ""
5+
labels: question
6+
assignees: ""
7+
---
8+
9+
As a [role], I want to understand [topic] so that [decision can be made].
10+
11+
## What
12+
[Question or area to explore]
13+
14+
## Why
15+
[What decision is blocked without this research?]
16+
17+
## Acceptance criteria
18+
- [ ] ADR documenting the decision
19+
- [ ] Recommendation with alternatives considered

.github/ISSUE_TEMPLATE/task.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Task
3+
about: Atomic implementable unit of work
4+
title: ""
5+
labels: enhancement
6+
assignees: ""
7+
---
8+
9+
As a [user type], I want [capability] so that [benefit].
10+
11+
## What
12+
[Clear description of the change]
13+
14+
## Why
15+
[Motivation — which epic does this serve?]
16+
17+
## Acceptance criteria
18+
- [ ] [Observable behavior 1]
19+
- [ ] [Observable behavior 2]

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build Astro site (PR validation)
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "22.12.0"
19+
cache: npm
20+
cache-dependency-path: astro-site/package-lock.json
21+
22+
- name: Install dependencies
23+
working-directory: astro-site
24+
run: npm ci
25+
26+
- name: Create assets symlink
27+
working-directory: astro-site/src/content
28+
run: ln -s ../../../assets assets
29+
30+
- name: Build site
31+
working-directory: astro-site
32+
run: npm run build
33+
34+
- name: Check links
35+
uses: lycheeverse/lychee-action@v2
36+
with:
37+
args: --base astro-site/dist astro-site/dist
38+
fail: true

.github/workflows/deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jobs:
2424
- name: Set up Node.js
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: "22"
27+
node-version: "22.12.0"
28+
cache: npm
29+
cache-dependency-path: astro-site/package-lock.json
2830

2931
- name: Install dependencies
3032
working-directory: astro-site
@@ -38,6 +40,12 @@ jobs:
3840
working-directory: astro-site
3941
run: npm run build
4042

43+
- name: Check links
44+
uses: lycheeverse/lychee-action@v2
45+
with:
46+
args: --base astro-site/dist astro-site/dist
47+
fail: true
48+
4149
- name: Upload artifact
4250
uses: actions/upload-pages-artifact@v3
4351
with:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ Thumbs.db
4848
*.mov
4949
*.wmv
5050

51+
# draw.io and image editor backup files
52+
*.bkp
53+
5154
astro-site/src/content/assets

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ rounded=1;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#D3D1C7;strokeWid
261261

262262
```bash
263263
# Astro site (from astro-site/)
264-
npm run dev # develop — hot reload at localhost:4321
264+
npm run dev # develop — hot reload at localhost:4321/tutorial-git/
265265
npm run build # production build to dist/
266266
npm run preview # preview production build locally
267267
```

0 commit comments

Comments
 (0)