Skip to content

Contributing

Zuko Gutyungwa edited this page Aug 17, 2026 · 5 revisions

Contributing / Workflow

Branching and PRs

  • Feature branches, then a pull request into main. Nothing gets pushed straight to main.
  • Every issue gets opened before the work starts, and referenced in the commit (Closes #N or Refs #N).
  • This applies even to small, incidental fixes found while working on something else, not just the planned day-by-day items. See issue #23 for an example: a one-line config fix still got its own issue and PR rather than being folded silently into other work.

Commit style

Conventional Commits: feat:, fix:, docs:, chore:, ci:, test:.

Commit granularity

As of Day 15: commit every file the moment it's created, and every subsequent edit to that file or any other tracked file, separately, no batching multiple changes into one commit even if they land minutes apart. Day 12 (11 commits) and Day 14 (8 commits) already moved away from one-commit-per-day; Day 15 pushed this to its current form, one commit per file and per edit, full stop. Earlier days (1 through 11) bundled each day into a single commit instead, that was a deliberate earlier choice, not an inconsistency to fix retroactively.

Merging

Every PR merges with a real merge commit (--merge), never --squash. Squashing collapses exactly the granular commit history the rule above exists to produce, on GitHub a squashed PR shows as a single commit on main regardless of how many separate commits the branch actually had. PR #48 (Day 15) was merged with --squash by mistake and left as the one exception in this repo's history rather than rewriting main over it; every PR since uses --merge.

Voice

Every commit message, PR body/title, and issue body/title reads as one person's own reasoning, first person, solo. No phrasing that implies a second party was involved in reaching a decision: "discussed," "we decided," "agreed," "on your behalf," "without the surrounding conversation," and similar all imply two people working something out together, and that's not an accurate description of how this repo's history came together. Write it as one person's own decision-making: "chose Trivy over Dependency-Check because...", not "discussed and chose."

Labels

  • type: feat / type: fix / type: docs / type: chore / type: ci / type: test, matching the commit prefix.
  • elective: cyber / elective: cloud / elective: both, marking which elective the work primarily proves.

Milestones

One per week: Week 1 - Foundation, Week 2 - Core Scanner & Reporting, Week 3 - Cloud & Demo. Every issue belongs to one.

PR descriptions

Keep them substantive: what changed, why, how it was tested. That write-up doubles as interview prep later.

Architecture Decision Records

When a real technical decision gets made, especially one that deviates from an existing plan or picks between genuinely competing options, it gets written up in docs/adr/, sequentially numbered, close to when the decision actually happened rather than batched at the end. A PR description or commit message explains what changed; an ADR explains why, in enough detail to stand on its own for anyone reading the repo later. See 0001 for the shape: Context, Decision, Alternatives considered, Consequences. As of Day 16, three more ADRs (0002 to 0004) followed the same shape for decisions already made earlier (Postgres, JWT, the Strategy pattern), formalized once there was a natural documentation day for them rather than written the moment each decision happened, unlike 0001, which was written the same day as the decision it records. Both are fine, an ADR's accuracy matters more than its timing relative to the decision.

Clone this wiki locally