Parent
Part of #14
What to build
Add ValidateBranchPolicy(ctx, target, source string) (string, error) to .dagger/main.go and a .github/workflows/branch-policy.yml workflow that calls it on every PR to master/develop.
Branch prefix table (sketch — confirm in PR):
- → develop:
feature/*, bugfix/*, chore/*, docs/*, infra/*, refactor/*, test/*, ci/*, chore/back-merge-*
- → master:
release/*, hotfix/*
Workflow mirrors haydenk/homestead's branch-policy.yml: pinned dagger/dagger-for-github, GITHUB_TOKEN only.
Acceptance criteria
Blocked by
None — can start immediately.
Parent
Part of #14
What to build
Add
ValidateBranchPolicy(ctx, target, source string) (string, error)to.dagger/main.goand a.github/workflows/branch-policy.ymlworkflow that calls it on every PR to master/develop.Branch prefix table (sketch — confirm in PR):
feature/*,bugfix/*,chore/*,docs/*,infra/*,refactor/*,test/*,ci/*,chore/back-merge-*release/*,hotfix/*Workflow mirrors haydenk/homestead's
branch-policy.yml: pinneddagger/dagger-for-github, GITHUB_TOKEN only.Acceptance criteria
ValidateBranchPolicyGo function with table-driven unit tests in.dagger/main_test.godagger call validate-branch-policy --target=... --source=...works locally.github/workflows/branch-policy.ymladded; uses only official-or-upstream actionsBlocked by
None — can start immediately.