Connect a provider
The workspace owner does this once. Open Integrations (under More in the sidebar) and pick GitHub, GitLab or Bitbucket under Code & deploys. Then either:
- select Connect GitHub (or GitLab, or Bitbucket) and sign in to approve, or
- select Use a token and paste an API token with read and write access to the repositories Owl Role should follow (for Bitbucket, a workspace access token).
Owl Role acts through its own bot account, owl-role-bot, so nothing is posted as a person, and every write it makes is recorded in the actions log.
Choose repositories
On the connected provider, use Scope repositories (on GitLab, projects) and tick the ones Owl Role should see. Refresh picks up new repositories.
Link a pull request
Open a work item and, under Links, select Link a resource. There are three ways in:
- Search: find a pull request (or merge request) or issue in your connected repositories by title or number.
- Paste URL: paste a link such as
https://github.com/owner/repo/pull/123. Links from a connected provider show their title and state; any other link is saved as a plain link. - Branch: link a branch by its name.
A linked pull request shows its number, title and whether it's open, closed or merged, and you can expand its changed files. Paste URL and Branch work even before a provider is connected.
Branch names
Every work item suggests a branch name; select Copy branch name and use it when you start the work. Project leads set the pattern under the project's Labels page, in Branch naming.
Automatic detection
Owl Role also looks for pull requests that mention a work item's marker in their title, description or branch name, and lists them under Detected on the work item. Using the suggested branch name is the easiest way to get this.
Tokens and disconnecting
- If a token expires or is revoked, the provider shows Replace token (or Reconnect). Replacing a token re-scopes the bot.
- Disconnect deletes the stored credential and stops all reads and writes.