The checklist for giving the Coder a repository on GitHub, GitLab, or Bitbucket: which token, which permissions, where to connect it, and a first test.
Before the Coder can work on your code, it needs three things from you: a token from your code host, that token connected in StellarFirm, and a repository to work in. This page is the checklist for all three, on GitHub, GitLab, or Bitbucket. Each host's own page has the exact clicks.
Give the token what the steps you want need. Reads run on their own; every write waits for your Approve or follows your merge policy.
Step
GitHub fine-grained token
GitLab token
Bitbucket repository access token
Bitbucket Atlassian token
Read the code, pull or merge requests, changed files
Contents, Pull requests, Metadata: Read
api
Repositories, Pull requests: Read
read:repository, read:pullrequest
Read check, pipeline, or build results
Commit statuses: Read
api
Repositories: Read
read:repository
Read and open issues
Issues: Read and write
api
Not possible
read:issue, write:issue
Push its branch
Contents: Read and write
write_repository, Developer role
Repositories: Write
write:repository
Open a pull or merge request
Pull requests: Read and write
api, Developer role
Pull requests: Write
write:pullrequest
Merge, when your rules allow
Contents: Read and write
api, Maintainer for a protected branch
Pull requests: Write
write:pullrequest
Create a repository
Administration: Read and write, All repositories
Not available
Not available
Not available
Bitbucket's Atlassian scopes all end in :bitbucket, for example read:repository:bitbucket. A GitHub classic token with repo covers its whole column, and also reads check runs, which fine-grained tokens cannot.
Open Integrations and pick your code host from the Code hosting shelf.
Paste the token. For a Bitbucket Atlassian token, also enter the account email.
Leave the live switch on and press Connect.
Check that the card shows Connected.
The desktop app saves the token on your computer. It is never shown back to you, never goes into chat, and is handed to one git command at a time when the Coder pushes. See security.
The Coder works in one repository at a time. Tell it which one:
In each message. Write it as owner/repository (GitLab: group/project; Bitbucket: workspace/repository), or paste its link.
Once, per Coder. Under Settings, Coders, each Coder has Repository and login: the code host, the repository, and whose login it uses. A message that names that repository goes to that Coder.
Shared or own login. By default every Coder uses the token you connected under Integrations, so its work shows your name on the code host. Choose Its own login to give a Coder a separate token, for example a machine account that only has access to one repository. Running several Coders? Give each its own repository and, if you like, its own login. See several Coders.
Three lines on branches, tests, and what never to touch
The Coder opens drafts. A draft cannot be merged on any of the three hosts, so mark it ready for review on the host before you ask the Coder to merge it.