mantish/ help / docs
Join the waitlist

Connect a repository

Add a repository from Azure DevOps, GitHub, GitLab or Bitbucket — or a folder on your disk.

Last updated

To see pull requests, Mantish needs three things: where your repository is hosted, which repository it is, and a token that lets Mantish read and comment on its pull requests — a personal access token, or on Bitbucket an API token with your Atlassian account email.

What to enter

PlatformAddressRepository
Azure DevOpsOrganization URL — https://dev.azure.com/your-orgProject
GitHubAPI URL — https://api.github.com, or your GitHub Enterprise serverRepository — owner/repo
GitLabServer URL — https://gitlab.com, or your own GitLabProject path — owner/repo
BitbucketAPI URL — https://api.bitbucket.orgRepository — workspace/repo-slug

Token permissions

Mantish uses the token for the platform's API alone — never for git (a local clone fetches with your own git credentials) — so it needs no git permissions. Required permissions, beside the token field, opens your platform's part below.

Each table starts with what every review needs. The rest each turn on one feature: leave one out, and you only lose what its row says.

Azure DevOps token

Create a personal access token in User settings › Personal access tokens, for the organization you connect, and paste it into Token (PAT).

ScopeWhat Mantish uses it forWithout it
Code: Read & write (required)Pull requests, their changes, files, comments, statuses and policies; commenting, replying, resolving, liking, voting and completing themNothing works
Work Items: ReadThe linked work items' titles and statesThose lists stay empty
Build: ReadLinks from a pull request's checks to their pipeline runsChecks show without links

No Identity, Graph or Profile scope is needed: Mantish learns who you are from the organization itself.

GitHub token

Create a fine-grained token in Settings › Developer settings › Personal access tokens, with access to the repository, and paste it into Token (PAT).

PermissionWhat Mantish uses it forWithout it
Pull requests: Read and write (required)Pull requests, their files, commits, comments and reviews; commenting, replying, resolving, approving, drafts, closingNothing works
Contents: Read (required)Files' contents, comparing iterations, folders, the images in commentsDiffs show no code
Metadata: Read (required, always included)The repository itself—
Contents: Read and writeMerging, and deleting the branch after the mergeYou can't merge from Mantish
Commit statuses: ReadCI statuses in a pull request's checksStatuses are missing
Issues: ReadLinked issuesThose lists stay empty
Issues: Read and writeLiking a comment in the pull request's conversation (a comment on a line needs only Pull requests)You can't like those comments

A classic token needs repo — or public_repo, for public repositories only.

GitLab token

Create a fine-grained personal access token (GitLab 18.10 or later) for the project, and paste it into Token (PAT).

PermissionWhat Mantish uses it forWithout it
Merge Request: Read (required)Merge requests, their changes, commits, discussions, reviewers, approvals and linked issuesNothing works
Repository: Read (required)Files' contents, comparing iterations, foldersDiffs show no code
Merge Request: Create (required)New comments and repliesYou can't comment
Merge Request: Update (required)Resolving threads, editing comments, publishing comments as a batch, draft and ready, closing, rebasing to mergeThose actions fail
User: Read (required)Knowing which merge requests and comments are yoursApproving fails, and nothing shows as yours
Merge Request: DeleteDeleting your commentsYou can't delete them
Merge Request: ApproveApproving, and revoking an approvalYou can't approve
Merge Request: MergeMergingYou can't merge from Mantish
Commit: ReadCI statuses and commit signaturesChecks and signatures stay empty
Project: ReadThe project's merge method (squash, fast-forward)Merges take the defaults
Work Item: Read, Create, DeleteLiking comments (GitLab keeps reactions under work items)You can't like comments

A legacy token needs api; read_api only lets Mantish read.

Bitbucket API token

Bitbucket signs you in with an API token of your Atlassian account. Create one at id.atlassian.com › Security › API tokens › Create API token with scopes, pick Bitbucket, and add the scopes below. Then enter your Atlassian account email and paste the token into API token.

ScopeWhat Mantish uses it forWithout it
read:pullrequest:bitbucket (required)Pull requests, their changes, commits and commentsNothing works
write:pullrequest:bitbucket (required)Commenting, replying, resolving, approving and requesting changes, merging, declining, draftsYou can't comment
read:repository:bitbucket (required)Files' contents, the merge base, build statuses, folders, branchesDiffs show no code
read:user:bitbucket (required)Knowing which pull requests and comments are yoursApproving fails, and nothing shows as yours

A token's scopes can't be changed once it is created, so a missing one takes a new token. Every API token expires — within a year at most — and then takes a new one too. Repository and workspace access tokens don't work: they act as a bot, not as you.

Options

  • Keep PR list synced in the background — on by default, so the list is fresh when you look.
  • Verify commit signatures — shows whether each commit is signed (GitHub and GitLab).
  • Local clone path (optional) — if you have the repository cloned, point Mantish at it and it reads files from there instead of over the network. Reviews open faster.

Where to add it

AppWhere
Desktop appAdd repository — the + on the left rail, or ⌘K › Add Repository
JetBrainsIn development
TerminalPress p, then a. ctrl+t tests the connection, ctrl+s saves it

To change or remove a repository in the desktop app, choose Repository settings (the pencil next to its name in the review queue). The dialog has a Remove button.

Adding a GitHub repository
Adding a GitHub repository

A repository on your disk

To review your own changes before you push, pick Local repository as the provider and enter the folder's path. No token is needed. See Review your own changes.

Your token stays with you

Your token is stored encrypted on your computer by the Mantish engine. The apps never keep a copy of their own.

Was this page helpful?