Saving commits your changes to data/bets.json in . The latest version of the file is read first, so the hourly ESPN updates are kept. You need a fine-grained token that can write to that one repository:
- Open GitHub → Fine-grained tokens → Generate new token.
- Repository access: Only select repositories → choose the repository above.
- Permissions → Repository → Contents: Read and write. Nothing else is needed.
- Pick an expiration, generate it, and paste it below.
The token is saved only in this browser (localStorage) and is only ever sent to api.github.com. It is never put in the repo. Use "Forget token" on shared computers. If you'd rather not use a token, close this and use Copy JSON or Download instead.