Before you begin
- In Agent Golf, the Manage Organization Integrations organization permission. An organization admin has it. You do not have to be a user of a workspace of the organization. A workspace cannot connect GitHub. See Stop or remove the connection.
- The View Pull Requests and Repositories or the Manage Integrations permission, to see the repositories that the App covers on the workspace page.
- On GitHub, a current owner role in the GitHub organization. Installing the App does not give this role. Other members of the GitHub organization can only request an installation.
- A GitHub organization on github.com. Agent Golf connects to GitHub.com only.
Connect your organization
- Open Settings, choose Organization at the top of the navigation, then select Integrations > GitHub.
- Under GitHub Organizations, select Connect GitHub Organization. When a GitHub organization is already connected, select Connect Another GitHub Organization. The GitHub organization connects to the organization, and the organization keeps its data. Each workspace of the organization sees its pull requests.
- Authorize Agent Golf on GitHub. GitHub returns you to Agent Golf.
- Continue on the page that Agent Golf shows:
- Choose a GitHub Organization: select the GitHub organization to connect. This page also shows when the list has only one GitHub organization. To connect one that is not in the list, select Install on Another GitHub Organization. Choose within 10 minutes, or the choice expires.
- No Installation Found: select Continue with GitHub, then choose the GitHub organization. Choose All repositories or Only select repositories, and install the App. GitHub lists the permissions that the App requests. When GitHub returns you to Agent Golf, select the GitHub organization on Choose a GitHub Organization.
- Already Connected Elsewhere: see Connection errors.
- A GitHub organization that no Agent Golf organization holds, or that your organization already holds. Connecting one that your organization holds again repairs the connection.
- A GitHub organization that another Agent Golf organization holds, when that organization has no active user, or when you have the Manage Organization Integrations permission in it. Connecting moves it to your organization.
If you choose a GitHub organization that already has the App on the GitHub install page, GitHub opens that
installation’s settings and does not return you to Agent Golf. Go back to Agent Golf and connect again.
Connect during signup
- On Set Up Your Organization, select Continue with GitHub instead of Create Organization.
- Authorize Agent Golf on GitHub.
- On Choose a GitHub Organization, select the GitHub organization. When none of your GitHub organizations has the App, GitHub opens the App installation first. Install the App there.
- On Name Your New Organization, enter the name of your company. It names your Agent Golf organization, and your invoices show it.
- Select Create Organization.
Install the App from GitHub
You can also install the App on GitHub first. When GitHub returns you to Agent Golf:- You are signed out: sign in. Agent Golf then continues.
- You have a workspace: Attach the GitHub Organization? opens. Select Attach to with the name of the organization of your workspace, then select the GitHub organization on Choose a GitHub Organization. Without Manage Organization Integrations in that organization, the page asks you to ask an organization admin. To use a new Agent Golf organization, select Set Up as a New Organization and continue as in Connect during signup.
- You have no organization: continue as in Connect during signup.
Review repository coverage
You choose the repositories on GitHub. Agent Golf shows your choice, but you cannot change it in Agent Golf.- On the GitHub page, select Show Repositories next to the GitHub organization.
- Review the list. It shows up to 100 repositories. For a larger installation, it shows “Showing the first 100. See GitHub for the full list.”
- To add or remove repositories, select Manage Repositories on GitHub.
Approve Actions access
A pull request’s CI runs and their cost need the App’s Actions: Read permission. An owner of the GitHub organization must approve it. When the GitHub page shows “Approve Actions access on GitHub to see CI runs and costs.”:- Select Review Access on GitHub.
- On GitHub, review and accept the new permissions.
Connection states
Connection errors
Stop or remove the connection
To disconnect:
- Open Settings, choose Organization at the top of the navigation, then select Integrations > GitHub.
- Select Disconnect next to the GitHub organization.
- Confirm in Disconnect GitHub Organization.