GitHub API lets the AI read repository data and open issues, pull requests and file changes. It is separate from linking a project to a repository for syncing.
What you can ask for#
List the open pull requests in my website repository and summarise each one.
Open an issue in my repo when a user submits the bug report form.
Read the README of my repository and show it on an About page.
Connect GitHub API#
Step 1: Find the connector
Open Tools, then Connectors, and search for GitHub API. You can also go to Settings, then Connectors, in your dashboard.
Step 2: Select Connect
Select Connect.
Step 3: Choose what the AI may do
Read data is on by default. Modify data is off until you turn it on.
Step 4: Sign in and approve
Select Continue with GitHub API. A window opens: sign in and approve access. GitHub API will ask you to confirm these permissions.
Step 5: Check the connection
The window closes and the connection shows as connected. Everyone in your workspace can use it. Swarmz stores a token, never your password.
Before you connect#
Syncing a Swarmz project with GitHub is set up in Tools, then Settings, then Git. This connector is a different one, for apps and chats that need repository data. GitHub's read access covers public repositories. Private repositories need write access too, because GitHub does not offer private read-only access to this kind of connection.
What the AI can and can't do#
- List repositories, branches, issues and pull requests, and read files.
- Open issues, comment, open pull requests and change files when Modify data is on.
- File changes are limited to 5 MB, and updating an existing file needs its latest version from GitHub.
- Apps you publish can call this connector too, not just the builder.
- Changes ask for your approval by default. You can adjust this under Agent permissions on the connection. See What an integration can access.
Troubleshooting#
A private repository is missing.
Reconnect with Modify data turned on, then approve access in GitHub.
I want to sync my project, not read repos.
Open Tools, then Settings, then Git, and use Connect.
GitHub says my app is not approved.
If your organisation restricts apps, ask an owner to approve the connection.
General steps for any connector are in Connect an integration. To remove it, see Disconnect an integration.
What Swarmz can do with it
Repository data
List repositories, branches, issues, and pull requests.
Repository workflows
Create issues, add comments, and update bounded repository files.
More in Developer tools
Still stuck?
A person from Swarmz Support can take a look.