Design a Maintainable Team Repository
Start with a project brief
Garden Planner is a tiny Python application that returns the number of days between watering sessions. The capstone issue G-1 adds a schedule for shade plants while preserving the existing sunny-plant behavior. Two fictional contributors, Alice and Bob, share a local bare repository. You will create a feature, review it, release it, recover a lost unpublished commit and hand off maintenance. No GitHub account is needed for the offline lab.
Choose a small workflow
Use main as the integration branch and short-lived feature/G-1 for the change. Alice contributes; Bob reviews and integrates. A proposed team policy requires independent review and a successful test tied to the exact candidate commit. The local bare remote does not enforce these rules; the lab checks a fictional review record. A real team should configure protected branches and required checks separately, verify effective permissions and avoid unnecessary release branches for a tiny project.
Document the work
Include README (purpose and test command), CONTRIBUTING (branch, review and test expectations), SECURITY (private reporting route to be configured), CHANGELOG, issue and PR templates, and a dependency policy. The application uses only Python standard library. Record the absence of third-party runtime dependencies, not an assurance of zero vulnerabilities. The issue acceptance criteria are shade=5, sun=3, and unknown input raises ValueError.
Practice and check
In either fixture clone inspect tracked files and current state. Confirm the repository is the disposable one before continuing. Explain who may propose changes and who should integrate; decide how to handle a failing test or an absent reviewer. A policy document is evidence of intent, not proof of enforcement. The automated lab creates these documents and verifies the planned baseline.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Design a Maintainable Team Repository — knowledge check
Apply evidence-based professional repository maintainership.
Which criterion tests G-1 directly?
What does a tracked policy prove?
Which workflow suits the tiny project?
Who should review Alice’s feature in the fixture?
No third-party runtime dependencies means what?