Thanks for contributing to TeachLink.
- Do not push directly to protected branches (
main,develop). - Create a feature branch from
develop(preferred) ormain:feat/<short-description>fix/<short-description>chore/<short-description>
Before opening a PR, ensure the issue is assigned to you.
Your PR will be blocked from merging unless it meets the following:
-
CI must pass
- Required checks:
type-check,lint,build,test(GitHub Actions: Frontend CI)
- Required checks:
-
Approvals required
- Minimum 1–2 approvals (as configured in branch protection rules).
-
Branch must be up to date
- Update your branch with the target branch before merge (no stale merge).
-
Conversations resolved
- All review conversations must be resolved before merge.
-
Issue must be referenced
- PR description must reference a GitHub issue and include one of:
Close #<issue-number>/Closes #<issue-number>/Fixes #<issue-number>
- PR description must reference a GitHub issue and include one of:
npm run type-checknpm run lintnpm run testnpm run build
Use the PR template (auto-applied). Ensure it includes:
- Summary of changes
- Testing notes
Close #<issue-number>
- Keep changes small and focused.
- No console errors.
- Use
lucide-reacticons for UI. - Keep components accessible and responsive.
Do not commit secrets. Use .env.local for local environment variables.