Hi!
Please read the guidelines below before submitting contributions to sflynlang/compiler.
More help can be found by joining our Official Discord Server.
-
First review Issues to see if what you have in mind is already under discussion. (NOTE If you are using GitHub CLI, you can run
gh issue view -R sflynlang/compiler
. See more) -
If your issue is not already addressed in Issues, you can open a new Issue to be reviewed. Please provide as much description as you can for the bug, feature request, problem etc in the Issue message.
-
Mention in the Issue that you want to work on it and ask to be assigned.
-
Wait for the approval from the Maintainers of this project before creating a new branch to start work on it.
-
Create a pull request after making the changes and mention the Issue number that your pull request is related to.
-
Make the required changes if the reviewer asks for them.
-
That's it! Your pull request will be merged once everything is okay. (:
Watch this video if you are new in GitHub YouTube Video
Fork this repository (sflynlang/compiler) to your GitHub account. You can do this by clicking on the Fork button provided in the top right corner of the repository page.
NOTE: If you are using GitHub CLI can run
gh repo fork sflynlang/compiler
to fork it. (See more)
Please also, star and watch this repository to receive all the updates directly to your e-mail.
Watch this video to learn how to Fork a repository YouTube Video
Clone the repository that you just forked into your account. Be careful to clone the forked repository (your-username/compiler) and not the main repository (sflynlang/compiler) as making direct changes to the main repository will result in conflicts and harder change management in the future.
The forked repository will have your username in the top left corner and the clone link will also contain your username (https://github.com/your-username/compiler.git).
NOTE: If you are using GitHub CLI can run
gh repo clone your-username/compiler
to clone your forked repository. (See more)
Watch this video to learn how to clone a forked repository YouTube Video
At this point, you should have the repository on your system and be ready to make changes. But what if someone else changes the same thing that you just did?
To avoid any merge conflicts, you need to pull all the changes from the main repository.
So, after cloning the forked repository (your-username/compiler) to your system, use the command git remote add upstream https://github.com/sflynlang/compiler.git
to point git to the main repository. This only needs to be done once.
Now, after making any changes to your project on the system, follow the steps below to push your work to the repository:
git add .
git commit -m "feature/fix/refactor/docs: Commit message"
(Remember to follow our Code of Conduct and Conventional Commits format)
git pull upstream main
(This command checks for any conflicts with the main repository. Go through the conflicts and make changes, if required)
git push origin main
Watch this video to learn how to set up a remote repository YouTube Video
If you do not know how to install this compiler, please read this installation guide.
After pushing your changes to your forked repository (your-username/compiler), create a new pull request from your account by simply clicking on the Pull Request button.
NOTE: If some of your commits are behind sflynlang/compiler:main, then you need to first pull
git pull upstream main
from the system, push it to your forked repository and then create the Pull Request.
Give a detailed and useful explanation of what you did in the comments of your pull requests. We will review your code, accept and merge the pull request, or ask you to make any required changes.
NOTE: If you are using GitHub CLI, please run
gh pr create --title "feature/fix: Title" --body "Pull request message"
orgh pr create
. (See more)
You can use our pull request template (view here).
Watch this video to lewarn how to create a Pull Request YouTube Video
Many thanks to Skill Board project for the base of our Contribution Guidelines.
🎉 Good luck and keep coding!