We love contributions! But we'd like you to follow these guidelines to make the contribution process easy for everyone involved:
The issue tracker is our main channel to report a bug in the source code or a mistake in the documentation, and to request a new feature.
Before submitting your issue, please search the archive. Maybe your question was already answered, your bug has already been reported or your feature has already been requested.
Providing the following information will increase the chances of your issue being dealt with quickly:
-
Bug reports - if an error is being thrown, please include a stack trace and the steps to reproduce the error. If there is no error, please explain why do you consider it a bug.
-
Feature Requests - please make it clear whether you're willing to write the code for it or you need someone else to do it.
-
Related Issues - if you found a similar issue that has been reported before, be sure to mention it.
Before making any changes, consider following these steps:
-
Search for an open or closed Pull Request related to your changes.
-
Search the issue tracker for issues related to your changes.
-
Open a new issue to discuss your changes with the project owners. If they approve it, send the Pull Request.
If your change has been approved, follow this process:
- Fork the project, clone your fork and configure the remotes:
# Clone your fork into the current directory
git clone https://github.com/<your-username>/<repo-name>
# Navigate to the newly cloned directory
cd <repo-name>
# Assign the original repo to a remote called "upstream"
git remote add upstream https://github.com/rosariopfernandes/firextensions
- Make your changes in a new branch:
git checkout -b my-fix-branch master
- Commit the changes using a descriptive commit message
git commit -a
Note: the optional commit -a
command line option will automatically "add" and "rm" edited files.
- Push your branch to GitHub:
git push origin my-fix-branch
- In GitHub, send a Pull Request with a clear title and description.
- If we suggest changes then:
- Make the required changes;
- Rebase your branch and force push to your GitHub repository (this updates your Pull Request):
# Rebase the branch git rebase master -i # Update the Pull Request git push origin my-fix-branch -f
That's it! Thank you for you contribution!
You can delete your branch and pull changes from the original (upstream) repository:
- Delete the remote branch on GitHub either through the GitHub UI or your local shell as follows:
git push origin --delete my-fix-branch
- Check out the master branch:
git checkout master -f
- Delete the local branch:
git branch -D my-fix-branch
- Update your master with the latest upstream version:
git pull --ff upstream master
We generally follow the Android Kotlin Style Guide.