1.4 KiB
1.4 KiB
How to contribute to SillyTavern
Setting up the dev environment
- Required software: git and node.
- Recommended editor: Visual Studio Code.
- You can also use GitHub Codespaces which sets up everything for you.
Getting the code ready
- Register a GitHub account.
- Fork this repository under your account.
- Clone the fork onto your machine.
- Open the cloned repository in the code editor.
- Create a git branch (recommended).
- Make your changes and test them locally.
- Commit the changes and push the branch to the remote repo.
- Go to GitHub, and open a pull request, targeting the upstream branch.
Contribution guidelines
- Our standards are pretty low, but make sure the code is not too ugly:
- Run VS Code's autoformat when you're done.
- Check with ESLint by running
npm run lint
, then fix the errors. - Use common sense and follow existing naming conventions.
- Create pull requests for the staging branch, 99% of contributions should go there. That way people could test your code before the next stable release.
- You can still send a pull request for release in the following scenarios:
- Updating README.
- Updating GitHub Actions.
- Hotfixing a critical bug.
- Project maintainers will test and can change your code before merging.
- Mind the license. Your contributions will be licensed under the GNU Affero General Public License. If you don't know what that implies, consult your lawyer.