First off, thank you for considering contributing to Kotlin JSON Internationalization. It's people like you that make Kotlin JSON Internationalization such a great tool.
If you've noticed a bug or have a feature request, make sure to check our issues if there's something similar to what you have in mind. If there isn't, feel free to open a new issue!
If this is something you think you can fix, then fork Kotlin JSON Internationalization and create a branch with a descriptive name.
A good branch name would be (where issue #1 is the ticket you're working on):
git checkout -b feature-1-add-google-translator
At this point, you're ready to make your changes! Feel free to ask for help; everyone is a beginner at first.
Ensure that your code works as expected and doesn't introduce any new bugs.
At this point, you should switch back to your master branch and make sure it's up to date with Kotlin JSON Internationalization's main branch:
Go to the Kotlin JSON Internationalization repo and press the "New pull request" button.
If a maintainer asks you to "rebase" your PR, 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 feature-325-add-google-translator
git pull --rebase upstream master
git push --force-with-lease origin feature-325-add-google-translator
A PR can only be merged into master by a maintainer if:
- It is passing CI.
- It has been approved by at least two maintainers. If it was a maintainer who opened the PR, only one extra approval is needed.
- It has no requested changes.
- It is up to date with current main.
Any maintainer is allowed to merge a PR if all of these conditions are met.