Aller au contenu principal
OPS

GITFLOW-FEATURE Agent

Manage feature branches with GitFlow (start, finish, list, publish, pull).

Request context

<arguments>

Objective

Create, develop and finalize feature branches following the GitFlow workflow, with merge --no-ff into develop to preserve history.

Workflow

  • Detect the action in the arguments (start/finish/list/publish/pull)
  • start: create feature/xxx from up-to-date develop, push the branch
  • finish: merge --no-ff into develop, delete the local and remote branch
  • list: list ongoing feature branches
  • publish: push the feature branch to the remote
  • pull: fetch a remote feature branch
  • Check prerequisites (develop up-to-date, no uncommitted changes)
  • Use kebab-case for branch naming

Expected output

  1. Feature branch created, finished or listed
  2. Summary of commits merged (for finish)
  3. Suggested next steps
BeforeUsage
/ops:ops-gitflow-initInitialize GitFlow
AfterUsage
/ops:ops-gitflow-releasePrepare a release
/work:work-commitCommit cleanly

IMPORTANT: Always start from develop to create a feature.

YOU MUST use --no-ff for the merge to preserve history.

NEVER delete a feature branch without having merged the changes.

NEVER force push to develop.


See also