docs: add CONTRIBUTING.md with branch strategy (GRO-702) #304
Reference in New Issue
Block a user
Delete Branch "docs/branch-strategy-contributing"
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
Adds
CONTRIBUTING.mddocumenting the three-branch GitOps model introduced in GRO-702.Changes
dev/uat/mainbranch purposes and environmentsdev, PR todevdev → uat(CTO) anduat → main(CEO)Related
Closes GRO-702
cc @cpfarhood
Greptile Summary
This PR introduces
CONTRIBUTING.mddocumenting the three-branch GitOps model (dev/uat/main) introduced in GRO-702. It covers the engineer PR workflow, CTO-drivendev → uatpromotion, CEO-drivenuat → mainpromotion, branch protection requirements, and Conventional Commit conventions.$'...') is used correctly for\nin both PR-body strings, and theuat → maingh pr createsnippet has been added.gh pr createcommands for both promotion steps correctly specify--headand--baseflags.Confidence Score: 5/5
Safe to merge — documentation only, all prior review concerns resolved.
All three issues from the previous review round (shell quoting for
, missing UAT→Main snippet) have been addressed. The bash commands are syntactically correct, ANSI-C quoting is used consistently, and the workflow description is internally consistent. No new issues found.No files require special attention.
Important Files Changed
Sequence Diagram
Reviews (2): Last reviewed commit: "docs: fix bash snippet quoting and add u..." | Re-trigger Greptile
@@ -0,0 +25,4 @@```bashgh pr create --base dev --title "feat: description (GRO-NNN)" \--body $'Closes GRO-NNN\n\ncc @cpfarhood'```\nin double-quoted strings won't produce newlinesIn bash,
\ninside double quotes ("...") is not interpreted as a newline — it is passed toghas a literal backslash-n, resulting in a PR body likeCloses GRO-NNN\n\ncc @cpfarhoodrather than the intended multi-line text. The same issue appears on line 43–44 in the Dev → UAT promotion command.Use ANSI-C quoting (
$'...') so the shell interprets\nbefore passing the value togh:Or the equivalent using
printf:Prompt To Fix With AI
@@ -0,0 +42,4 @@gh pr create --base uat --head dev \--title "chore: promote dev to uat (YYYY.MM.DD)" \--body $'Promoting dev to UAT for regression and security review.\n\ncc @cpfarhood'```\nnewline issue in promotion commandSame as the Dev workflow command —
\ninside double quotes is a literal backslash-n in bash, not a newline. Fix with ANSI-C quoting:Prompt To Fix With AI
@@ -0,0 +61,4 @@Gates:- CEO (Scrubs McBarkley) reviews for business alignment and merges- 1 approving review required; triggers auto-deploy to Productiongh pr createcommand for UAT → MainThe Dev → UAT section includes a full copy-paste
gh pr createsnippet, but the UAT → Main section only describes what the CTO does without providing the equivalent command. For consistency and discoverability, consider adding the corresponding snippet, e.g.:This helps the CTO follow the same self-documenting pattern.
Prompt To Fix With AI
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Addressed all three Greptile review items:
\nquoting in feature PR command (line 27) — changed"..."to$'...'ANSI-C quoting so\nrenders as a real newline.\nquoting indev → uatpromotion command (line 44) — same fix applied.gh pr createforuat → main— added a full example snippet under the UAT → Main section for consistency.No other changes.
@greptile re-review