Thank you for investing your time in contributing to our project! Any contribution you make will be reflected on drikkeleker.abakus.no ✨.
In this guide you will get an overview of the contribution workflow from opening an issue, creating a pull request and getting it merging in.
Here are some resources to help you get started with open source contributions:
- Finding ways to contribute to open source on GitHub
- Set up Git
- GitHub flow
- Collaborating with pull requests
Issues are tracked in the issues tab.
If you want to contribute but don't know what to do, the issue-tab is the place to go.
If you encounter any problem, feel free to add a new issue if it does not exist.
When you create a fork you have your own copy of the repository where you have full access, without requiring to be granted write access to this repo. After you push your changes to your fork you can create a pull request to this repository.
- Create a fork of the repository.
-
Using GitHub Desktop:
- Getting started with GitHub Desktop will guide you through setting up Desktop.
- Once Desktop is set up, you can use it to fork the repo!
-
Using the command line:
- Fork the repo so that you can make your changes without affecting the original project until you're ready to merge them.
- Set up dev environment
- Install or update to Node.js if you don't already have it.
- Create a working branch and start coding!
Before you commit your changes, ensure that the styling is up to code by running
yarn prettier
Commit the changes once you are happy with them. Commit messages are to be thoroughly written. Here are our "rules":
- Write in the imperative mood ("Fix" instead of "Fixing", "Fixed", etc.).
- Limit the subject line to 50 characters.
- Capitalize only the first letter in the subject line.
- Do not put a period at the end of the subject line.
- Add a body (multi-line message) with an explanation, which means we do not recommend using
-m
argument when you rungit commit
. - Put a blank line between the subject line and the body.
- Describe what was done and why, but not how.
Do this ✅
Fix foo to enable bar
This fixes the broken behavior of the component by doing xyz.
Not this ❌
fixed bug
Remember to amend your commits if the changes should have been part of a previous commit. Examples of this are formatting and misspellings. For more information on how to rewrite your Git history, read this article.
When you're finished with the changes, create a pull request, also known as a PR. This can be done from the GitHub UI or through the GitHub CLI.
Congratulations 🎉🎉 Webkom thanks you ✨.
Once your PR is merged, your contributions will be publicly visible on drikkeleker.abakus.no.
If your contribution is deemed worthy, you might be qualified for a LEGO-pin! We will try to make contact, but please reach out if we don't manage.