If you feel insecure about how to start contributing, feel free to ask us on our Discord channel, in the #contrib channel. You can also just go ahead with your contribution and we'll give you feedback. Don't worry - the worst that can happen is that you'll be politely asked to change something. We appreciate any contributions, and we don't want a wall of rules to stand in the way of that.
However, for those individuals who want a bit more guidance on the best way to contribute to the project, read on. This document will cover what we're looking for. By addressing the points below, the chances that we can quickly merge or address your contributions will increase.
hasura/learn-graphql repo consists of tutorials for frontend, mobile and backend.
Our goal is to keep our tutorial content and the apps associated with it comprehensive and updated. If you would like to help us in doing so, we are grateful for any kind of contribution:
-
Add new tutorials (please reach out to us if you have ideas to avoid duplicate work).
-
Report missing content.
-
Fix errors in existing tutorials.
-
Help us in updating the app's versions.
-
Provide steps to reproduce the issue, including the tutorial that you are trying out.
-
Please include logs, if relevant.
-
Please make sure there is an issue associated with the work that you're doing.
-
If you're working on an issue, please comment that you are doing so to prevent duplicate work by others also.
-
Squash your commits and refer to the issue using
fix #<issue-no>
orclose #<issue-no>
in the commit message, at the end. For example:resolve answers to everything (fix #42)
orresolve answers to everything, fix #42
-
Rebase master with your branch before submitting a pull request.
-
The first line should be a summary of the changes, not exceeding 50 characters, followed by an optional body which has more details about the changes. Refer to this link for more information on writing good commit messages.
-
Use the imperative present tense: "add/fix/change", not "added/fixed/changed" nor "adds/fixes/changes".
-
Don't capitalize the first letter of the summary line.
-
Don't add a period/dot (.) at the end of the summary line.