intent-driven-template
intent-driven-template copied to clipboard
openspec-git-discipline behaves poorly when developing with a protected main branch
If you are working on a project with a protected main branch you will basically never be committing directly to main, but the skill expects things to not only pass through main but—for the purposes of archive—you to be on main when it is run. This flow also does not play nicely with other git development methodologies (e.g., gitflow, or a lot of PR-driven development), despite that otherwise the intent driven development patterns should work fine otherwise.
To break down the problem, at the moment in order to work with the gates in this skill you need to:
- Create a proposal.
- Check in that proposal in a branch.
- Create a PR for that proposal
- Get that proposal merged into the main branch specifically
- Sync the main branch.
- Create another branch to do the work.
- Create a PR for it.
- Get that PR merged into the main branch.
- Sync the main branch.
- In the main branch specifically archive it.
- Move the changes to a new branch.
- Create a PR for that new branch.
- Get that new PR merged into main.