-
-
Notifications
You must be signed in to change notification settings - Fork 31
Dev: Pull Requests
Pablo Mayrgundter edited this page Feb 8, 2024
·
8 revisions
A good pull request is:
- Focused: One holistic change. Less is more
- Clear: Well-factored, commented, no debugging
- Tested: unit tests for API boundaries, mocks for services, integration tests for UX tasks
- Summarized: A good description, with link to example of feature or fix
- Good commit messages. "a commit message shows whether a developer is a good collaborator"
Install our precommit checks for test & lint.
yarn husky-init
Subsequent commits in your local repo will trigger yarn precommit
which aliases to yarn lint && yarn test
.
To bypass these for local dev, add the -n
flag to git commit
git commit -nm 'Checkpoint before tests working'
- PR Creator drives the process
- Use Draft PRs until ready for review. If not ready, flip back to draft. Close after 2 weeks
- PR Assignee is who is being asked to do the review. Other reviewers may be added as cc's. See Teams for reviewers.
- Always set labels and Project (Project should be Planning).
- Reviewer quickly evaluates the overall functionality & PR quality and request any major changes
- "PTAL" (please take a/another look) in review only after all prior comments addressed
- "PTAL" in discord, with link to PR, to get attention
- After approval PR creator merges if Admin
- Changes after approval not allowed except for small debug removal, comment improvement.
Creating a PR will deploy on Bldrs Netlify instance.
Please include a targeted link to demo feature in PR Description.
Quick reference for how to merge from upstream into your fork:
# First time only: git remote add upstream https://github.com/bldrs-ai/Share
# After PR is accepted/merged in main, to sync you fork:
> git fetch upstream
> git merge upstream/main --no-commit
# then review the changes and proceed creating a commit and PR as usual