Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to set up the GitHub integration

Connect GitHub so your team can link issues to the journey-map steps they affect.

An Admin connects GitHub once at the account level. After that, anyone in your workspace can search GitHub and link issues to planning cards on any journey map.

Set up the GitHub integration

Prerequisites

GitHub uses a single authentication method: the name of the organization or user that owns the repositories, plus a fine-grained personal access token created for that owner.

1

Open the GitHub integration in Smaply

Go to Account Settings > Integrations and click Set up next to GitHub in the Planning integrations list.

The Planning integrations section of the Integrations tab in Smaply Account settings. Jira, Azure DevOps, Asana, Linear, Trello, Monday.com, and GitHub are listed, each with an Edit or Set up button. GitHub, the last row, shows Set up.
GitHub in the Planning integrations list

The Configure GitHub page opens with two empty fields and a blue help block summarising the setup.

The Configure GitHub page in Smaply. A GitHub API Configuration form has a blue help block with three setup steps, two empty required fields labelled Organization or user name and Personal access token, and a Save Configuration button.
Configure GitHub, empty form
2

Create a fine-grained personal access token in GitHub

Click the github.com/settings/personal-access-tokens link in the help block. It opens GitHub's new fine-grained token form in a new tab. Sign in if asked. You can also get there from your GitHub profile picture via Settings > Developer settings > Personal access tokens > Fine-grained tokens > Generate new token.

Fill in the form:

  • Token name - Something you'll recognise later, such as smaply-connector.

  • Expiration - When the token stops working. Smaply's connection stops at the same time, so note the date.

  • Resource owner - The organization or user that owns the repositories you want to link.

  • Repository access - Choose Only select repositories and pick the repositories in Selected repositories.

  • Permissions - Set Issues and Metadata to read-only.

Click Generate token and copy the token.

3

Enter your details and save

Back on the Configure GitHub page, enter the owner's name in Organization or user name. Use the name as it appears in the GitHub URL, for example octo-org from github.com/octo-org, and make sure it matches the Resource owner you picked for the token. Paste the token into Personal access token and click Save Configuration.

4

Confirm the connection

Smaply tests the connection and, once it succeeds, the page shows a green confirmation. GitHub is now available to everyone in your account.


Verify the setup

Reopen the Configure GitHub page from Account Settings > Integrations, where the GitHub row now shows Edit. A connected integration shows your organization or user name and a masked token, with a green confirmation that you're connected to GitHub. From here you can also Edit Configuration or Delete Configuration.

If you don't see the green confirmation, check the Troubleshooting section below.


Use GitHub in planning cards

Once GitHub is connected, anyone in your workspace can add a planning card to a journey map, pick GitHub in Search planning items, and link the issue it relates to. The integration links issues, not pull requests. For the full flow, see How to use planning cards.


Troubleshooting

The Configure GitHub page shows the integration's current state. Pick the symptom below that matches what you're seeing.

Connection Error or the connection won't save - Connection issue

The owner name or token is wrong, or they don't belong together. Reopen Configure GitHub, click Edit Configuration, and check each value:

  • Organization or user name is only the name, such as octo-org, not the full URL.

  • It's the same owner you picked as Resource owner when you created the token.

  • The token is pasted in full, with no extra spaces.

Save again. If it still fails, create a fresh token and enter it.

Your organization isn't offered as Resource owner in GitHub - Organization policy

Your GitHub organization has blocked fine-grained personal access tokens, so it doesn't appear in the Resource owner list. Ask a GitHub organization owner to allow fine-grained tokens, then create the token again.

No items found when adding a planning card - Search issue

The connection works but GitHub returns nothing for your search. Check these in order:

  • The token may still be pending approval. Some organizations require an organization owner to approve fine-grained tokens. Until then, the token can only read public repositories, so issues in private repositories won't appear. Ask an organization owner to approve it.

  • The repository may not be selected. The token only sees the repositories you chose under Repository access. Edit the token in GitHub to add the repository.

  • The permissions may be missing. The token needs read-only access to Issues and Metadata.

  • You may be searching for a pull request. The integration links GitHub issues only.

A connection that worked has stopped - Token expired or revoked

A working GitHub connection breaks when the token expires, is deleted in GitHub, or the person who created it loses access to the repositories. Your organization may also limit how long tokens can last.

Create a new token at github.com/settings/personal-access-tokens/new, then reopen Configure GitHub, click Edit Configuration, and paste in the new token.

Issues are missing or you can't connect at all - Permission issue

Configuring the integration needs an Admin role at the account level. If Set up or Edit Configuration isn't available, ask an account Admin to make the change.

For which GitHub issues appear, the connection uses the token's access. If a teammate can't find an issue they can open in GitHub, its repository may not be among those the token covers.

For questions about how the connection behaves across your account, such as disconnecting GitHub or what happens when you remove it, see How to manage integrations.

Still not working? Contact support at help@smaply.com


Last updated