Actions
PRs MRs on CiviCRM » History » Revision 1
Revision 1/2
| Next »
Brienne Kordis, 09/27/2022 06:24 PM
PRs/MRs on CiviCRM¶
PR stands for "pull request" while MR means "merge request".
Basic PR Process¶
- Fork the repository in question (usually either on GitHub or GitLab)
- Clone the repo by copying the ssh key from the repo and running the
git clone (*ssh key*)
on the command line - Add a remote repo with
git remote add (*name of remote*) (*branch name*)
- Push the remote repo with
git push (*name of remote*) (*branch name*)
- Add changed files (
git add (*name of files*)
- Commit staged files (
git commit -m ""
) with a message to describe the commit within the quotes - Push the committed files (
git push
) - click on the link the is provided in the terminal
- fill out the info to on the browser page to make the PR
Cherry-picked PR¶
Use this when you want to cherry-pick a specific commit for a PR
git branch
git checkout (*name of branch with desired commit*)
git log
- copy the commit id of the desired commit
git branch
git checkout master
git checkout -b (*new branch name*)
git cherry-pick (*commit id*)
git log
- `git push (name of remote) (new branch name)
- click on the link the is provided in the terminal
- fill out the info to on the browser page to make the PR
PRs on CiviCRM Release Canidates (RC)¶
git check out (*name of RC branch*)
git check out (*the new branch that you made edits in*)
git add
the changed filesgit push
branch to upstream- open the link that shows in the terminal after the last command is run to create a pull request
- change the base of the repo you are merging into to be release candidate for CiviCRM
Updated by Brienne Kordis about 2 years ago · 1 revisions