GitHub Issues
GitHub Issues is the work-management integration between GitHub and Allure TestOps. It covers:
- linking test cases and launches to GitHub issues;
- issue lookup inside TestOps using repository-aware search;
- supported defect workflows that create or reuse GitHub issues;
- issue-mapping support for automatic links created from test metadata.
This page covers GitHub as an issue tracker. If your goal is workflow upload or workflow execution, use GitHub Actions instead.
If you have already set up a GitHub CI integration for your GitHub instance, update the existing token instead of creating a new integration:
Check which type of token you used.
- Fine-grained token — create a new token with Repository permissions → Actions and Issues both set to Read and write, and Repository access scoped to the repositories that contain workflows and issues. Update the token in the existing TestOps integration.
- Classic token — create a new token with the repo and workflow scopes. Update the token in the existing TestOps integration.
In the existing project integration, add the repositories that contain the issues you want to use (see step 3).
Before you begin
- The GitHub service URL and API URL.
- Access to create a GitHub personal access token.
- The list of repositories whose issues TestOps must see.
- Permission to add or enable integrations in the target TestOps project.
1. Create a GitHub access token
GitHub supports both fine-grained and classic personal access tokens.
- In GitHub, click your avatar and go to Settings.
- Click Developer settings.
- Go to Personal access tokens → Fine-grained tokens.
- Click Generate new token.
- Fill in the fields:
- Token name — a name to identify the token, for example
Token for Allure TestOps. - Expiration — how long the token should be valid. After this date the integration will stop working.
- Token name — a name to identify the token, for example
- Under Repository access, click Only select repositories and select the repositories that contain the issues you want to use.
- Under Permissions → Repository permissions, set Issues to Read and write. If the same integration will also trigger workflows, set Actions to Read and write as well.
- Click Generate token and copy the generated token. Save it in a secure location.
- In GitHub, click your avatar and go to Settings.
- Click Developer settings.
- Go to Personal access tokens → Tokens (classic).
- Click Generate new token → Generate new token (classic).
- Fill in the fields:
- Note — a name to identify the token, for example
Token for Allure TestOps. - Expiration — how long the token should be valid.
- Note — a name to identify the token, for example
- Under Select scopes, check repo. If the same integration will also trigger workflows, check workflow as well.
- Click Generate token and copy the generated token. Save it in a secure location.
2. Add the global GitHub integration
An instance administrator should:
Open Administration → Integrations in TestOps.
Click + Add integration.
Select GitHub.
Fill in the fields:
- Name — a stable name for the GitHub service, for example
GitHub production. - Endpoint —
https://github.comfor github.com, or the GitHub Enterprise Server URL. - Endpoint for API calls —
https://api.github.comfor github.com, or<your-ghes-url>/api/v3for GitHub Enterprise Server.
- Name — a stable name for the GitHub service, for example
If the GitHub server uses a self-signed certificate, disable certificate validation.
Click Add integration.
3. Enable GitHub Issues in the project
In TestOps, open the target project.
Go to Settings → Integrations.
Under Available integrations, find the GitHub integration and click Add integration.
Under Settings, add the repositories whose issues should be available in the project. For each repository, click + Add and enter:
- Owner — the GitHub owner or organization.
- Repository name — the repository name.
For example, for
github.com/torvalds/linuxthe owner istorvaldsand the repository name islinux.Under Secret, paste the GitHub access token.
Click Test connection and save the project integration.
If a repository is missing from this list, its issues will not appear in the TestOps issue picker.
4. Configure issue mapping for automatic links
If your tests already emit issue labels through an Allure adapter, configure an issue mapping so TestOps can turn those labels into real issue links automatically.
Open the TestOps project.
Go to Settings → Issues.
Click + Create.
Fill in the fields:
- Key — the short identifier your tests use in metadata.
- Issue tracker — the GitHub integration you enabled for the project.
Save the issue mapping.
5. Add issue links
Once the integration is set up, you can link test cases and launches to GitHub issues manually.
To link a test case:
- Go to Test cases and open the test case.
- Click the pencil icon next to Issue links.
- Click + Add.
- Under Issue tracker, select your GitHub integration.
- Under Key, enter part of the issue name and select it from the list.
- Click Submit.
To link a launch:
- Go to Launches.
- Click
⋯next to the launch and select Edit. - In the Issues section, click + Add.
- Under Issue tracker, select your GitHub integration.
- Under Key, enter part of the issue name and select it from the list.
- Click Submit.
Verify the integration
- Open a test case in TestOps and add an issue link.
- Confirm that the issue picker can search the expected GitHub repositories.
- Open a launch and add or edit an issue link there as well.
- If your team uses defect export, create or link a defect to confirm that the GitHub issue workflow is available in that view too.
Troubleshooting
The issue picker does not show the repository you need
Check these points first:
- the repository owner and name were added in the project integration settings;
- the GitHub token has access to that repository;
- the token includes Issues read/write permission for the repository.
The same GitHub integration works for Actions but not for issues
The CI token is too narrow for issue workflows. Expand the repository list and add Issues permission to the token, or use a separate project-level token for the issue-tracking job.
Related pages
- GitHub Actions for workflow upload and triggered runs.
- Links, issues, and relations for how issue links appear in TestOps.
- Defects for defect-to-issue workflows.