Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,9 @@ jobs:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Check branch strategy
run: |
TARGET="${{ github.base_ref }}"
SOURCE="${{ github.head_ref }}"
# Feature branches → development only
if [[ "$SOURCE" =~ ^(feat|fix|chore|docs|refactor)/ && "$TARGET" != "development" ]]; then
echo "::error::Feature branches must target development, not $TARGET."
exit 1
fi
# PRs to main → must come from development
if [[ "$TARGET" == "main" && "$SOURCE" != "development" ]]; then
echo "::error::PRs to main must come from development."
exit 1
fi
echo "✓ branch strategy OK: $SOURCE → $TARGET"

- name: Check branch naming
run: |
SOURCE="${{ github.head_ref }}"
if [[ "$SOURCE" == "development" ]]; then exit 0; fi
if [[ ! "$SOURCE" =~ ^(feat|fix|chore|docs|refactor)/ ]]; then
echo "::error::Branch '$SOURCE' does not follow naming convention."
echo "Must start with: feat/, fix/, chore/, docs/, or refactor/"
Expand Down
5 changes: 1 addition & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ enforcement lives in CI and the Lean type system, not here.
- **No `import Mathlib`** — full import banned; Lean syntax linter
`Util/Linter/ImportBan.lean` enforces at build time.
- **Build green** — `lake build` must pass.
- **Branch protection** — `main` and `development` protected;
no direct push, PRs only.
- **Branch strategy** — feature branches (`feat/`/`fix/`/`chore/`/
`docs/`/`refactor/`) → `development` → `main`. CI enforces.
- **Branch protection** — `main` protected; no direct push, PRs only.
- **Branch naming** — branches must start with `feat/`/`fix/`/`chore/`/
`docs/`/`refactor/`. CI enforces.
- **PR title** — must match `type(scope): summary`. CI enforces.
Expand Down
Loading