GitHub Integration
Connect GitHub repositories to give Brief context from pull requests and use GitHub tools in chat.
Connect GitHub to give Brief context from your selected repositories. Brief can use pull requests to understand work in progress and shipped work, and an available codebase overview to answer questions about a repository's structure. You can also ask Brief to read files or work with GitHub issues.
Connect GitHub
- Open Integrations and select Connect a Tool….
- Choose GitHub, select Done, then select Connect on its row and complete GitHub authorization. Brief requests repository access (including write access), read access to organizations and your profile, and access to your email address.
- Search or expand repository owners, then select up to 100 repositories to share, including ones you can access as an outside collaborator. Turn on Monitor GitHub Issues if you want issues from those repositories included in Brief's context.
- Select Complete Setup.
If you select Don't share, the connection completes without repositories selected for indexing. GitHub tools in Brief Chat can still use repositories that the connected account can access. Open Configure on the GitHub connection later, change the selection or issue monitoring setting, and select Save Changes.
What Brief uses
Brief's GitHub work feed reads pull requests from selected repositories. Open pull requests appear as work in progress, and merged pull requests appear as shipped work. Closed pull requests that were not merged are omitted from this feed. This feed does not separately sync commits or contributors.
Brief can also read the configured repository's README and recent GitHub Discussions for product and planning context. Discussions may be unavailable for a repository; in that case, Brief can use the README alone.
When a codebase overview has been generated for a selected repository, Brief can use it for questions such as "Where is authentication implemented?" or "What does this repository contain?" The overview can be incomplete for very large repositories. For a specific file or symbol, Brief can read files or search code with GitHub tools instead.
After setup, Brief reads selected repository work in the background. GitHub event updates can also reach Brief through webhooks when registration succeeds. A recent file change may not be reflected in an existing codebase overview; ask Brief to read the file for current content.
Brief can connect a pull request to a matching Linear or Jira work item when its title names one matching ticket key, such as ACME-123. A closing phrase in the pull request description, such as Fixes ACME-123, is another way to link the work item.
Work with GitHub in Brief
In Brief Chat, try "Show open pull requests in owner/repo" or "Read the configuration file in owner/repo." With the connected account's permissions, GitHub tools can read files and issues; search code, issues, and pull requests; create or update files; delete files; push multiple files in one commit; create issues and linked sub-issues; and comment on issues or pull requests. They can also create, update, review, and merge pull requests. Specify the repository and the change you want. When you save a repository selection, Brief limits repository actions through these tools to those repositories.
Common problems
- A repository is missing from the picker: Check that the GitHub account you authorized can access it. The picker groups repositories by owner and has a search field; there is no separate organization picker.
- No pull requests appear: Open Configure and confirm that the repository is selected. A repository with no open or merged pull requests has no pull request work for Brief to show.
- A codebase answer is missing or incomplete: Confirm the repository is selected. A compact overview may not have been generated, or it may omit details from a large repository. Ask Brief to read a specific file or search code for the detail you need.
- The connection needs attention: Use Reconnect on its Integrations row to authorize again. Use Configure when the connection works but the repository selection needs changing.
- Your GitHub organization restricts third-party OAuth apps: Ask an organization administrator to approve Brief in GitHub Settings > Third-party access. Then try the GitHub action again.
For related context, see Connect Linear, Connect Jira, Connect Notion, Browse integrations, and Troubleshoot connections.