¿Hablas español? ¡Aquí puedes encontrar la guía de cómo contribuir en español! CONTRIBUTING_ES.md
Before contributing, please read and abide by our Code of Conduct. We take our code of conduct very seriously and expect all contributors to adhere to it.
📖 Check out the project's README for more information. The README contains more detailed information on how to run the project. To access the README, simply click on the link provided:: README
-
🔍 Look for an issue to work on in the GitHub issue tracker. If you can't find an issue that suits you, create a new issue. Learn More
-
🍴 Fork the project on GitHub. Learn More
-
🌿 Create a new branch from the develop branch. This ensures that your changes don't interfere with the main codebase. Learn More
-
🛠️ Make changes to the code in your local branch. You can use your favorite code editor to make the necessary changes.
-
📤 Push your changes to your forked repository on GitHub. This updates your forked repository with your changes.
-
🚀 Create a pull request (PR) from your branch to the develop branch of the original repository. This asks the project maintainers to review your changes and merge them into the main codebase. Learn More
-
⏳ Wait for the maintainers to review and merge your PR. Be patient and wait for the maintainers to review your changes. They may ask you to make further changes before they merge your changes into the main codebase.
If you encounter a bug or have a feature request, you can report it by opening an issue on the GitHub issue tracker.
Before creating a new issue, please check if there is already an existing issue that covers your problem or feature request. If you find one, you can add a comment to the existing issue instead of creating a new one.
When you create a new issue, try to provide as much detail as possible about the problem or feature request. If you are reporting a bug, provide steps to reproduce the problem, error messages (if any), and relevant information about your environment.
Including these details will help the maintainers of the project understand the issue and respond more effectively. Thank you for your contribution to the side-ui project.
- Navigate to the repository you want to fork on GitHub.
- Click the "Fork" button in the top right corner of the page.
- Select your profile or the organization you want to fork the repository to.
- Wait for the forking process to complete.
Once you have forked the repository, you will have a copy of the original repository in your own GitHub account that you can work on without affecting the original repository. You can now proceed to clone the repository to your local machine and make changes.
- Before creating a new branch from the develop branch, it's a good practice to make sure that your local develop branch is up-to-date with the latest changes from the original repository. To do this, you can run the following command:
git remote add upstream https://github.com/serudda/side-ui
git pull upstream develop
The git remote add
command is used to add a new remote repository to your local Git repository. In this case, upstream
is the name of the remote repository being added and https://github.com/serudda/side-ui is the URL of the remote repository.
By adding upstream
, you can then pull the latest changes from the original repository (the one you forked from) using git pull upstream develop.
This ensures that your local develop
branch is up-to-date with the latest changes, reducing the chances of merge conflicts when you eventually create a pull request to merge your changes back into the original repository.
- Before creating a new branch from the develop branch, make sure you are currently on the develop branch by running the following command in your terminal:
git checkout develop
- To create a new branch, use the following command in your terminal:
git checkout -b SU-XX-description develop
Where XX
is the number of the issue you are working on and description
is a brief summary of the changes you plan to make. This naming convention helps to keep track of which branch corresponds to which issue.
-
Once you have created your branch, you can make your changes and commit them as usual. Remember to regularly pull from the original develop branch to keep your code up to date.
-
Once your changes are complete, push your branch to your forked repository:
git push -u origin SU-XX-description
We use the conventional commit format for all commits. This helps us keep our commit messages consistent and easy to understand.
Each commit message consists of a type, a scope, and a subject:
<type>(<scope>): <subject>
The type is one of the following:
feat:
A new featurefix:
A bug fixdocs:
Documentation only changesstyle:
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)refactor:
A code change that neither fixes a bug nor adds a featureperf:
A code change that improves performancetest:
Adding missing tests or correcting existing testsbuild:
Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)ci:
Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)chore:
Other changes that don't modify src or test filesrevert:
Reverts a previous commit
The scope is optional and should be a brief description of the affected component.
The subject should be a short description of the change. Use the imperative, present tense: "change" not "changed" nor "changes".
Here are some examples of valid commit messages:
feat:
Add new reward system APIfix:
Fix login error when password is blankdocs:
Update README with new installation instructionsstyle(css):
Add margin to rewards pagerefactor:
Simplify rewards calculation functiontest:
Add tests for rewards calculation functionbuild:
Upgrade to Django 3.0.0ci(travis):
Add build status badge to READMEchore:
Remove unused dependenciesrevert:
Revert "feat: Add new reward system API"
If you're unsure about the type or scope of your commit, feel free to ask for feedback in the pull request.
Once you've made changes and committed them to your branch, it's time to create a pull request (PR) to merge your changes into the main develop branch of the original repository. Here are the steps:
-
Go to the original Reward System repository on GitHub and click on the "Pull requests" tab. Shortcut
-
Click on the "New pull request" button.
-
Select your branch as the "compare" branch and thedevelop branch as the "base" branch.
-
Check that the changes you made are what you intended to do.
-
Write a title and description for your pull request.
Don't worry if you get any of the below wrong, or if you don't know how. We'll gladly help out. Title
The title of your pull request should start with the issue identifier [SU-XX]
followed by a short description of the change. For example:
[SU-12] Add new feature
[SU-456] Fix bug in rewards calculation
[SU-789] Update login page styling
The issue identifier SU-XX
corresponds to the number of the issue that the pull request is addressing. If you're adding a new feature, make sure there's an open issue for it before creating a pull request.
In the pull request description, provide more details about the changes you've made. Explain the problem you're trying to solve, and describe how your changes solve it. Be as clear and concise as possible. Include any relevant information, such as screenshots or links to external resources.
Before creating a pull request, make sure to link it to an open issue. If you're suggesting a new feature or change, please discuss it in an issue first. If fixing a bug, there should be an issue describing it with steps to reproduce.
In your pull request, include a general summary of your changes and describe them in detail. Explain why this change is required and what problem it solves. Provide evidence of your changes, such as screenshots or code snippets.
Also, describe how you tested your changes in detail. Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code, etc.
Finally, indicate the types of changes your code introduces by checking the relevant boxes. If you're unsure about any of these, don't hesitate to ask for help.
All pull requests will be reviewed by a project maintainer. The maintainer may ask for changes or suggest improvements. Once the pull request is approved, it will be merged into develop. Thank You!
Good documentation is essential for the success of any project. Here are some guidelines to follow when writing documentation for code changes or new features being added:
📝 Provide a brief summary: Include a brief summary of what the code change or feature does, and why it is needed. This helps contributors quickly understand the purpose of the changes.
💻 Provide examples: Provide examples of how to use the new code or feature. This helps contributors understand how the changes can be used in practice.
🗣 Use clear language: Use clear and concise language, and avoid technical jargon as much as possible. This helps contributors with different levels of expertise understand the changes.
🔄 Keep the documentation up-to-date: As the project evolves, make sure to update the documentation to reflect any changes. This helps contributors stay informed and ensures that the project remains well-documented.
By following these guidelines, we can ensure that our project remains well-documented and easy for contributors to understand.
If you're new to the T3 stack or Turbo Repo, here are some resources that can help you get started:
If you're interested in creating a Discord bot with Discord.js, here are some additional resources:
These resources should help you understand the basics of T3.js, Turbo Repo, and Discord.js, and get you started with contributing to our project. If you have any questions, don't hesitate to ask on our issue tracker.
We appreciate your contributions to the side-ui project. Your time and effort help make the project better for everyone!