chore: adopt Corestack project standards #3

Merged
end merged 4 commits from chore/scaffold-project into main 2026-10-25 14:39:59 -07:00
3 changed files with 8 additions and 29 deletions
Showing only changes of commit 864749c61c - Show all commits

No files matched your search

+7 -16
View File
@@ -3,23 +3,14 @@ name: ci
on:
push:
branches: [main]
paths:
- "cmd/**"
- "internal/**"
- "go.mod"
- "go.sum"
- ".golangci.yml"
- ".goreleaser.yaml"
- ".gitea/workflows/ci.yml"
paths-ignore:
# Keep embedded Markdown templates in CI; paths-ignore cannot undo a match.
- "*.md"
- "docs/**"
pull_request:
paths:
- "cmd/**"
- "internal/**"
- "go.mod"
- "go.sum"
- ".golangci.yml"
- ".goreleaser.yaml"
- ".gitea/workflows/ci.yml"
paths-ignore:
- "*.md"
- "docs/**"
jobs:
check:
-12
View File
@@ -2,15 +2,7 @@ name: Documentation
on:
push:
branches: [main]
paths:
- "**/*.md"
- "!internal/docs/templates/**"
- ".gitea/workflows/docs-check.yml"
pull_request:
paths:
- "**/*.md"
- "!internal/docs/templates/**"
- ".gitea/workflows/docs-check.yml"
jobs:
docs:
runs-on: ubuntu-latest
@@ -21,7 +13,3 @@ jobs:
go-version-file: go.mod
cache: false
- run: go run ./cmd/docs check
- run: go run go.auvem.com/corestack/cmd/docs@v0.1.0 check
- name: Require issue URLs in TODO comments
run: |
find . -type d \( -name .git -o -name node_modules -o -name vendor -o -name generated -o -name gen -o -name target -o -name dist -o -name build -o -name .svelte-kit -o -name .next \) -prune -o -type f \( -name '*.go' -o -name '*.ts' -o -name '*.tsx' -o -name '*.js' -o -name '*.svelte' -o -name '*.rs' -o -name '*.sql' -o -name '*.sh' -o -name '*.proto' -o -name '*.graphql' -o -name '*.yml' -o -name '*.yaml' -o -name '*.toml' \) -exec awk 'match($0, "((^|[^:])[/][/]|[/][*]|(^|[[:space:]])(#|--)|^[[:space:]]*([*]|<!--))") { comment=substr($0, RSTART + RLENGTH); todo=index(comment, "TO" "DO"); if (todo && substr(comment, todo + 4) !~ "https?:[/][/]") { print FILENAME ":" FNR ":" $0; bad=1 } } END { exit bad }' {} + # shortcut: line-based scan can flag comment-like strings and misses multiline issue links, use a parser when these need accurate coverage
+1 -1
View File
@@ -3,7 +3,7 @@
## Commands
- Check: `go build ./...`, `go vet ./...`, `go test -race ./...`, `go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.15.0 run ./...`; from the project root, run the TODO check below.
- Generate: No code generation is configured; format with `gofmt -w .`.
- Documentation: `go run go.auvem.com/corestack/cmd/docs@v0.1.0 check`; use the same pinned command with `new adr "Title"` or `new plan "Title"` to create records. Also run `go run ./cmd/docs check` to test the local implementation.
- Documentation: `go run ./cmd/docs check`; create records with `go run ./cmd/docs new adr|plan "Title"`. This checker repository uses its local implementation as the source of truth.
## Scope and decisions
- Before editing under a directory with its own AGENTS.md, read it. Scoped files: none; this root governs the single Go module.