How miten-kumar/practice-hub works
This repository is not an application codebase; it is a process and workflow lab. Its “architecture” is mainly the Git/GitHub workflow that contributors must follow, not runtime components.
1. Primary purpose
- The repo exists to practice real-world development habits: branching discipline, clean commits, and pull request hygiene.
- There are no code modules, services, or data stores described in the repository contents.
2. Main system boundary
- The real system boundary is GitHub repository management.
- All work happens through Git branches and pull requests, with GitHub enforcing review and commit metadata expectations.
3. Branch hierarchy
- dev is the integration branch and the required starting point for all new work.
- main is explicitly excluded as a branch source, implying it is not the active development base.
- Feature/personal branches are created from dev only.
4. Contributor workflow
- A developer checks out dev, pulls latest changes, creates a personal branch, works there, commits, pushes, and opens a PR back to dev.
- The branch naming convention is fixed: <your-name>-dev.
- This creates a simple two-level flow: individual work branches → dev.
5. Commit governance
- Commits must be Verified / signed.
- This is an architectural control point: Git is used not just for versioning, but for identity verification and trust.
- Commit messages are expected to be short and conventional, using prefixes like feat:, fix:, chore:, refactor:, docs:, and test:.
6. Pull request governance
- PRs must target dev.
- PR titles should be clear and meaningful, typically matching the conventional commit style.
- PR descriptions must explain the problem, what was implemented, and any important notes.
7. Collaboration model
- The repository supports a centralized integration pattern: many contributor branches converge into dev.
- There is no mention of direct pushes to shared branches, suggesting a controlled collaboration model through PRs.
8. Operational tooling
- The only materially relevant tooling here is Git and GitHub.
- Git handles branching, commits, and signing; GitHub handles branch hosting, PR workflow, and commit verification display.
9. What is missing by design
- No runtime, build system, package manager, test suite, or deployment pipeline is documented.
- So any diagram should avoid app-layer components and instead focus on human workflow and repository controls.
10. Best way to diagram this repo
- Show three actors/boundaries: Developer, Git/GitHub repository, and Branch targets.
- Depict the flow from dev to personal branches and back via PRs, with commit signing as a check on the commit path.
11. Architectural summary
- This repo is essentially a governance template for team development.
- Its architecture is the enforcement of process: branch from dev, commit with verification, and merge via PR into dev.
Main entry points: README.md README
Components 12
Documentation
Workflow rules captured in the repository README.
- README · Defines the required branching, commit, and PR process.
README.md
Contributor
Human actors performing the workflow.
- Developer · Checks out dev, works on a personal branch, and opens pull requests.
GitHub Repo
Branches, commits, and pull requests managed through Git/GitHub.
- Git · Handles branching, commits, and commit signing.
- GitHub · Hosts branches, displays verification, and manages pull requests.
- dev · Required base branch for all new work and PR target.
- main · Not used as the source branch for new work.
- feature branch · Contributor-owned branch created from dev using the <your-name>-dev naming pattern.
- Branch name · Fixed convention for personal branches: <your-name>-dev.
- Signed commit · Verified commit metadata required for accepted changes.
- Commit message · Short conventional prefixes such as feat:, fix:, chore:, refactor:, docs:, and test:.
- Pull request · Used to merge contributor branches back into dev with a clear title and description.
- Review merge · The controlled path for bringing personal branch changes into dev.
Connections 17
- README → Developer: instructs · The README tells contributors how to work.
- README → dev: sets base · New work must start from dev.
- README → feature branch: defines · Personal branches are created from dev.
- README → Branch name: specifies · Branch naming follows the <your-name>-dev pattern.
- README → Signed commit: requires · Commits must be verified / signed.
- README → Commit message: guides · Commit messages should use short conventional prefixes.
- Developer → Git: uses · The developer performs local branching and commits with Git.
- Developer → GitHub: opens on · The developer pushes branches and opens PRs in GitHub.
- Git → feature branch: creates · Git creates the contributor work branch from dev.
- feature branch → Signed commit: enforces · Each commit on the branch should be signed/verified.
- feature branch → Commit message: uses · Commits on the branch should follow the convention.
- feature branch → Pull request: submits · Changes are delivered through a PR.
- Pull request → dev: targets · All pull requests must target dev.
- GitHub → Pull request: manages · GitHub hosts and tracks the pull request workflow.
- GitHub → Signed commit: shows verification · GitHub displays commit verification status.
- Review merge → dev: merges into · Approved changes integrate back into dev.
- main → dev: not source · main is explicitly excluded as a branch source.