Pull Requests
A pull request proposes merging the changes on one branch into another — usually the default branch — and gives your team a place to review, discuss, and approve them before the merge happens.
Create a Branch
Section titled “Create a Branch”Work on a new branch so your changes stay separate from the default branch until they’re ready.
In the UI:
- Open your repository and select the branch selector near the top-left (it shows the current branch name).
- Type a new branch name in the search box and select Create Branch.
Locally:
- Create and switch to the branch:
git checkout -b feature-x - Make your changes, then stage and commit them:
git add .thengit commit -m "Describe what changed" - Push the branch to PlaidCloud Git:
git push -u origin feature-x
Open a Pull Request
Section titled “Open a Pull Request”- Open your repository and select the Pull Requests tab, then New Pull Request.
- Set the compare branch to your feature branch and the base branch to the target (usually
mainormaster). - Write a clear title and a description that explains what changed and why.
- To link related issues, add a closing keyword in the description — for example,
Closes #12— so the issue closes automatically when the pull request merges. - Assign reviewers if needed, then select Create Pull Request.
Review Changes
Section titled “Review Changes”Reviewers work through the pull request without merging anything:
- Open the pull request and select Files Changed to read the diff.
- Select any line in the diff to leave an inline comment on that specific change.
- When finished, submit an overall verdict: Approve to sign off, or Request Changes to ask for revisions first.
- The author pushes more commits to the same branch to address feedback — the pull request updates automatically, with no need to open a new one.
- Reviewers mark individual comment threads as resolved once each concern is addressed.
Once the pull request is approved:
- Choose a merge method from the dropdown next to the Merge button:
- Create a merge commit — preserves the full branch history with a merge commit.
- Squash and merge — combines all commits on the branch into a single commit on the target branch.
- Rebase and merge — replays the branch’s commits onto the target branch without a merge commit.
- Select Merge to complete it.
- Optionally select Delete Branch to clean up the feature branch once it’s no longer needed.