First off, thank you for considering contributing to kiBon!
If you've noticed a bug or have a question that doesn't belong on the wiki, then search the issue tracker to see if someone else in the community has already created a ticket regarding your issue. If not, feel free to go ahead and make one!
-
Ensure the bug was not already reported by searching on GitHub under Issues.
-
If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not happening.
At this point, you're ready to make your changes! Feel free to ask for help!
If this is something you think you can fix, then fork (RepoName) and create a branch with a descriptive name.
A good branch name would be (where issue #325 is the ticket you're working on):
git checkout develop
git checkout -b 325-add-mynewchanges
By being part of our development team and community, please abide the rules in our Code of Conduct! Further information on how to report inapropriate behaviour by others, check the Enforcements-Section in said Code Of Conduct. Thank you for being a nice person!
Since we're trying to keep the code structured, readable and standardised, please check out and implement our Code Styles & Inspections if you are using IntelliJ IDEA.
Code Styles (Add Scheme under Project Settings > Editor > Code Style)
Inspections (Add Profile under Project Settings > Editor > Inspections)
At this point, you should switch back to your master branch and make sure it's up to date with the master branch:
git remote add upstream [email protected]/StadtBern/Ki-Tax.git
git checkout master
git pull upstream master
Then update your feature branch from your local copy of master, and push it!
git checkout 325-add-mynewchanges
git rebase master
git push --set-upstream origin 325-add-mynewchanges
Finally, go to GitHub and make a Pull Request
If a maintainer asks you to "rebase" your pull request, they're saying that a lot of code has changed, and that you need to update your branch so it's easier to merge.
To learn more about rebasing in Git, there are a lot of good resources, but here's the suggested workflow:
git checkout 325-add-mynewchanges
git pull --rebase upstream develop
git push --force-with-lease 325-add-mynewchanges
A pull request can only be merged into develop by a maintainer if:
- It is passing the tests.
- It has been approved by at least two maintainers. If it was a maintainer who opened the pull request, only one extra approval is needed.
- It has no requested changes.
- It is up to date with current develop.
Any maintainer is allowed to merge a pull request if all of these conditions are met.