GitHub
The crew opens its pull requests on GitHub, and Tares follows each one through review and CI. You connect GitHub once, under Integrations, Code, in one of two ways.
| GitHub App (recommended) | Personal token | |
|---|---|---|
| What Tares hears | pull requests, pushes, reviews, comments, issues, releases and CI runs, as they happen, by webhook | no webhook; Tares asks GitHub when it needs to know |
| The crew commits as | the App | the token’s user |
| The token a session gets | a short-lived App token for the one repo it works in | the stored token |
When both kinds are stored, the App is used first.
With the GitHub App
On Tares Cloud
Under Integrations, Code, choose Connect GitHub, pick the account or organization and the repos the crew may use, and approve the GlassFlow GitHub App on GitHub. Only the workspace owner can connect GitHub.
On your own Tares
- Open Integrations, Code and choose Create GitHub App.
- Enter the GitHub organization to create it in (leave it empty for your own account). Check that This Tares, as GitHub reaches it is an address GitHub can reach.
- Choose Continue on GitHub. GitHub shows the App with its permissions and events filled in. Confirm it.
- Back in Tares, choose Install on GitHub, pick the repos, and install.
Tares stores the App (its id, private key and webhook secret) as a credential, with the webhook address it listens on. Nothing is pasted by hand.
GitHub must be able to reach your Tares for webhooks to arrive. A local tares up is not reachable
from the internet, so run a tunnel and use its address as the public URL, for example:
cloudflared tunnel --url http://localhost:8787
TARES_PUBLIC_URL=https://<your-tunnel>.trycloudflare.com tares upThe App can still be created without one; deliveries start once Tares is reachable.
The App asks for these permissions, which you can narrow on GitHub’s page:
| Permission | Access |
|---|---|
| Metadata | read |
| Contents | read and write |
| Pull requests | read and write |
| Issues | read and write |
| Checks | read and write |
| Actions | read |
| Commit statuses | read |
Every delivery is checked against the App’s webhook secret before anything is stored. A delivery with a missing or wrong signature gets a 401 and is counted on the App’s row. An installation that was not started from this Tares is not added.
With a personal token
- Create a token on GitHub for the repos the crew works in. A fine-grained token needs
Contents and Pull requests read and write, and Issues read and write when tickets
live in GitHub Issues. A classic token needs the
reposcope. - Open Integrations, Code, choose Add a personal token, give it a name and paste it. For GitHub Enterprise, also set the API URL.
What Tares does with it
- Pull requests: a builder works on the branch
factory/<ticket>, so Tares ties each pull request to its ticket and shows it on the ticket, on Reviews and on the project. - CI: the CI integration reads the pull request’s check runs and commit statuses. A repo with no workflow files counts as having no CI, so a pull request is not held for checks that never come.
- Tickets: with GitHub Issues as the tickets integration, Tares creates and moves the issues with the same credential.
Troubleshooting
- No deliveries from the App. Check that Tares is reachable at the address the App uses (a local Tares needs a tunnel) and that the App is installed on the repo. GitHub’s App settings list recent deliveries under Advanced, with their responses.
- Deliveries refused (401). The webhook secret on GitHub does not match the one Tares holds. A recreated App gets a new one; connect it again.
- A 403 from GitHub. The App or token lacks a permission; the error names the call. After you change an App’s permissions, accept them on GitHub.