chatmated
EN
Try it
GitHub

GitHub connection: how many pull requests wait for your review and how many issues are assigned to you

You can set up the GitHub connection yourself in the Chatmated app on the Connections page: at present it reads two numbers, open pull requests waiting for your review and open issues assigned to you. A breakdown by repository, a list of old pull requests and the state of builds we build to order. You need a fine-grained token with three read permissions.

Connect it yourself

You can set up this connection yourself in the Chatmated app. What the ready connection reads today is written at the top of the page. Below is everything the program's API allows: the rest we build on request.

Connect GitHubThe account takes a minute. Three days are free and no card is asked for.

What the connection reads

  • Search of issues and pull requests, which gives the total count of results as one number
  • Pull requests where a review has been requested from the token's owner
  • The user who owns the token, which is used to check whether the token is valid

What it does when you confirm

  • The ready-made connection shows the number of pull requests waiting for your review in the morning view and, below it, the number of open issues assigned to you
  • Can be built so that pull requests that have waited a long time are in the morning view by name, with repository and age

What it does not do

  • Does not write code, comment or approve pull requests: the token has read permission only
  • Does not read the content of repositories or code
  • Does not count archived repositories

What we need from you. A GitHub fine-grained personal access token with the permissions Issues, Pull requests and Metadata at Read-only level. You create it at: your picture, Settings, Developer settings, Personal access tokens, Fine-grained tokens. The token expires on the date you choose.

How many pull requests are waiting for my review?How many open issues are assigned to me in GitHub?Has the GitHub token expired?

Who the work is waiting on

In a software company, work is mostly not waiting on the person who writes the code. It is waiting on the person who has to review the code. The pull request is ready, the author waits, and in the reviewer's inbox it is one notification among forty. If the reviewer is you, the owner or technical lead, then you are the bottleneck, and often without knowing it yourself.

The morning view row shows this directly. The large number is open pull requests where a review has been requested from you. Below it is how many open issues are assigned to you. The first number says how many people are waiting on you. The second says how many things you yourself have promised.

Creating the token as narrowly as possible

Of GitHub's personal tokens, use the fine-grained kind here, because it can be given exactly the permissions that are needed and not one more.

  1. In GitHub open Settings under your picture, then Developer settings, Personal access tokens and Fine-grained tokens. Click Generate new token.
  2. Name it Chatmated and choose an expiration date.
  3. Choose the Resource owner: the account or organisation whose repositories you want to see.
  4. Choose Repository access and give the permissions Issues, Pull requests and Metadata, all at Read-only level.
  5. Click Generate token and copy the token.
  6. Open the Connections page in the Chatmated app and paste the token under the GitHub row.

The field checks right away whether the token starts the way GitHub tokens start; a fine-grained token starts with github_pat_. The app then asks GitHub for the token's owner. In case of a refusal the form says that GitHub did not accept the token, and asks you to create a new token with read permissions and to check whether the old one has expired.

Two searches, two numbers

The connection does not go through repositories one by one. It uses GitHub's search, the same one you use yourself in the search bar, and takes only the total count of results from the response.

Number on the row Search conditions
Waiting for your review Open pull request, a review has been requested from you, the repository is not archived
Issues assigned to you Open issue, you are the assignee, the repository is not archived

Both searches go out at once and only one result is requested from each, because a counter is needed, not a list. The connection does not use the titles or descriptions of pull requests and issues, or code. So one refresh is two small requests, and the response is kept for ten minutes.

The word "you" here means the token's owner. If the token is created by the head of development, the row shows the head of development's pending reviews. One company can link one token, so it is worth thinking through whose queue people want to see in the morning.

What the token sees

A fine-grained token has two limits at once. First, the owner: the token sees only the repositories of the account or organisation you chose in the Resource owner field. Second, the permissions: with three Read-only permissions nothing can be written, commented on or merged.

Two common surprises come from this too. If you chose your personal account as the owner but the work happens in the organisation's repositories, the row shows zero. And if the organisation has turned on token approval, the token is created but does not work until an administrator approves it. Neither is a fault in the app, and each is resolved in GitHub's settings.

The third thing is expiry. The token stops being valid on the date you chose yourself. This is a good property, but it means that the connection has to be renewed from time to time.

Expiry and the automatic check

It is precisely because of expiry that it is useful to know how the app behaves with a broken connection. Every connection is checked once a day. If GitHub says on two consecutive checks that the token is not valid, the connection is marked as broken and an e-mail is sent to the account owner. This way an expired token does not go unnoticed for weeks. If GitHub temporarily does not respond, the connection is not marked as broken.

Fixing is done from the connections page. The GitHub row has a Manage button: there you find the status of the connection and the time of the last check, and buttons for repeating the check, replacing the token, pausing, resuming and removing. Removing asks for confirmation. On pausing, the token is kept encrypted, but GitHub is asked nothing until you start the connection again.

In the chat you can ask the agent whether the GitHub connection is alive. It checks right away and answers. Pausing, resuming and removing it puts forward with a confirmation button. The token is not replaced in the chat: the agent gives a link that opens the GitHub row on the connections page.

What comes to order

Two numbers say that a queue exists, but not what is in it. The oldest pending pull requests by name, a breakdown by repository or person and the whole team's review queue are work that we build to order.

If your issues live somewhere other than GitHub, a similar row exists on the pages Jira connection and Asana connection. The morning of a company that sells services is covered more broadly on the page office and services.

The GitHub connection is put together on the basis of GitHub's public documentation, and it has not yet been tried with a real account; it has been checked with a made-up token that GitHub does not let it in.

Questions

The connection worked and then stopped. Why?

Most often the token has expired. An expiration date is chosen for a fine-grained token when it is created, and after that GitHub no longer recognises the token. Create a new token and replace it in the management window of the GitHub row on the connections page.

I created a token, but the pull requests of the company's repositories do not show. Why?

A fine-grained token sees only the repositories of the owner you chose in the Resource owner field. If the organisation requires token approval, the connection starts working only once the organisation's administrator has approved the token.

Which permissions should I give the token?

Three: Issues, Pull requests and Metadata, all at Read-only level. The ready-made connection does not need more, and we recommend not giving more.

Sources

  1. GitHub Docs: Managing your personal access tokens · read 17 November 2026
  2. GitHub Docs: REST API endpoints for search · read 17 November 2026
  3. GitHub Docs: Rate limits for the REST API · read 17 November 2026

Same group: tasks and time