CODEOWNERS and Issue-to-Release Traceability
Ownership is a review aid
A CODEOWNERS file maps path patterns to GitHub users or teams. GitHub consults the base branch’s file, looking in .github/, the root, then docs/. Owners need appropriate explicit write access, and a team must be visible. Later matching patterns take precedence. A file alone does not grant permission or require approval; configure the applicable branch protection or ruleset to require code owner review. Our example uses fictional team names, not real permissions.
Link the work to its reason
For issue #12, a PR description might say Fixes #12, explain the unit correction and report the actual check. GitHub interprets supported closing keywords in PR descriptions targeting the default branch; merging a linked PR there closes the issue. For another repository use Fixes OWNER/REPO#12. A PR into a non-default branch does not get that keyword-driven closure. A closing keyword in a commit message can close an issue when the commit reaches the default branch, but does not itself create the linked PR listing. A plain reference is useful when the work is related but incomplete.
Follow the evidence to a released snapshot
Trace issue #12 → fictional PR #21 → reviewed commit → integrated main → tag v1.0.1 → release notes. Check the tag contents with git show, and use git merge-base --is-ancestor when original commit ancestry is preserved. Squash or rebase may change commit IDs, so compare the actual change and inspect the integrated revision instead of assuming the original ID survives. GitHub Releases may contain generated notes, but review them and verify the tag. A closed issue, milestone or merged PR does not establish that software has been released or deployed.
Practice example
git show v1.0.0:notes.txtgit show v1.0.1:notes.txtgit diff --name-status v1.0.0 v1.0.1git log --oneline v1.0.0..v1.0.1Run only after the local fixture history is prepared (see the guide). The old snapshot says Water every 3 and the new one says Water every 3 days. The changed paths are CHANGELOG.md and notes.txt. These checks establish local snapshot contents, not a hosted release.
Check your understanding
A PR with Fixes #12 targets a non-default branch. What is missing before claiming the fix shipped? Identify the review, integration and release evidence separately.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
CODEOWNERS and Issue-to-Release Traceability — knowledge check
Reason about project planning, repository documentation and release evidence.
Does a CODEOWNERS file by itself require approval?
Which branch supplies CODEOWNERS for a pull request?
When do PR description closing keywords operate?
What if the change was squash merged?
Which evidence demonstrates the corrected tagged content?