chore: adopt trunk-based development — update PROJECT.md, cd.yml, add pre-push hook #27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Update
.context/PROJECT.mdto explicitly adopt Trunk-Based Development for this repo, override thecd.ymlPR trigger to remove the quality gate on pull_request events (since PRs are no longer the default), and optionally add a pre-push git hook.Background
gitea-mcpis a solo-owned, single-maintainer internal tool with a mature CI pipeline. It is the ideal candidate for strict TBD:task checkon every push to mainChanges to
.context/PROJECT.mdIn the Git conventions section, replace:
With:
In Agent instructions, replace rule 6:
With:
Changes to
.gitea/workflows/cd.ymlThe current workflow triggers on
pull_requestevents for thecheckjob:Since PRs are no longer the default, the
pull_requesttrigger is vestigial.Remove it to reduce noise:
The
checkjob'sif: github.event_name != 'pull_request'guard on thebuildjob can also be simplified to just run on every push:
Optional: add pre-push git hook
Add
.githooks/pre-pushto the repo so any agent or human working locallygets the quality gate enforced before push:
And in
Taskfile.yml, add a setup task:Document in README:
task setup:hookson first clone.Acceptance criteria
cd.ymlpull_request trigger removed.githooks/pre-pushadded (optional but recommended)task setup:hooksadded to Taskfile.yml (if hook added)task checkpasseschore: adopt trunk-based developmentNote on branch protection
Do NOT enable Gitea branch protection (required_approvals > 0) for this repo.
CI is the quality gate. Branch protection adds friction without safety for a
solo-maintained project.