Pull requests and your repository
Your GitHub repository is the source of truth for your game data, and Stoatly never edits it directly. When you're ready, Stoatly commits your changes to a new branch and opens a pull request into your production branch. You review it and merge it on GitHub. Only then do the changes become part of your data.
Why use pull requests?
Pull requests are the industry-standard way of taking one or multiple sets of changes and merging them into your project's main branch in one single transaction. By doing it this way, you can track changes, see who made them, read the justification, and revert the merge if you need to.

What Stoatly commits
- Data files. One JSON file for each record, in a folder for its object type. Alongside them sit files that describe the schema and list the records.
- Generated code. C# classes for your object types and enums, so your game reads the data through typed code.
Where these files go is set in the Unity settings. The generated code page shows what each file is.
The production branch
The pull request merges into the branch you set in the project's GitHub settings. It is main by default. Stoatly creates its own branch for each pull request, and you never push to it by hand.
The Stoatly check
Stoatly posts a check called Stoatly on every pull request it manages. It passes when the pull request is ready to merge and fails while merging it would go wrong. You can make GitHub require this check before merging. Stoatly never changes your branch rules itself.
Who merges
Merging happens on GitHub, so it follows your repository's own permissions and review rules. Stoatly doesn't merge for you.
Pull requests that depend on each other can be stacked.