🎉 Firstly, thank you for contributing to Catroweb! You are one of the pandas now! 🎉
PR's are always appreciated! Please be sure to fill out the PR Template as detailed as possible. You will be the hero of everyone who does code reviews. Every pull request will be automatically checked against various tests in our GitHub Actions CI system. Make sure all tests are passing! When tests are failing the PR will not be accepted.
There are comprehensive Guides and Cheat Sheets available in our wiki. Make sure to check them out if you have any questions, before asking a project maintainer.
- Plan your work
- Write tests (that fail)
- Implement your logic
- Check that all tests pass
- Repeat 1-4 if necessary
Also, make sure that every commit has the correct commit message layout so it shows up on JIRA.
must read: How to Write a Git Commit Message, by Chirs Beams
Line 1: SHARE-XXX Fitting Title (< 50 chars)
Line 2: empty line
Lines 3 - X: actual commit message; first focusing on WHY then focusing on WHAT you have changed.
Squash your commits, there must be only 1 commit! (XX is the number of your commits)
git reset --soft HEAD~XX &&
git commit
When there is only one commit and you just need to change the commit message you can use:
git commit --amend
Go to GitHub and create a Pull-Request from your forked repository into the official repository.
- check that you create the PR from your correct ticket branch!
- check that PR goes to the
develop
branch and notmain
branch! - enable "allow edits from maintainers", this allows the Seniors to rebase your PR if needed
-
merge-conflicts? Resolve them and rebase your PR.
git checkout develop git pull catroweb develop git checkout SHARE-XX git rebase -i develop
Resolve conflicts if necessary (Note: IDE's like Phpstorm have great tools to resolve such conflicts).
git rebase --continue git push -f
-
requested changes?
Feel free to discuss them with your code reviewer before blindly accepting them. Then if necessary apply the changes. After resolving the changes, don't forget to squash your commits and force push the branch.