With this connection the Leanmote Agent can act on your pull requests: comment, close, merge, request reviewers, label, and open a small fix as a draft pull request. It is separate from the GitHub integration, which only reads repositories for Context; see GitHub integration.
The agent never acts on its own: each action is proposed in Leanmote and runs only after a person approves it.
What the agent can do
Comment on a pull request —
pull_requests:write.Close a pull request —
pull_requests:write.Turn a pull request into a draft —
pull_requests:write.Request a reviewer —
pull_requests:write.Add a label to a pull request —
pull_requests:write.Mention someone on a pull request —
pull_requests:write.Post a review comment on a stalled pull request —
pull_requests:write.Merge a pull request —
contents:write. The merge only goes through if the pull request's latest commit is the same one the person saw when approving; if someone pushed since, nothing is merged. Branch protection rules still apply.Set the default reviewers of a repository —
contents:write. The agent opens a pull request that edits the repository's CODEOWNERS file; it does not change it directly.Open a fix as a draft pull request —
contents:writeandpull_requests:write. The agent creates a new branch, commits a small approved change (up to 5 files and 60 changed lines) and opens a draft pull request; it never merges it. If the change touches a GitHub Actions workflow it also needsworkflows:write.
Connect
Open the Actions Hub and go to the Your agents tab.
In Connections, click GitHub and then Authorize GitHub.
GitHub opens to install the Leanmote Agent app on your organization. Choose the organization and the repositories the agent may act on, and confirm.
If you are not an owner of the GitHub organization, GitHub sends the installation to the owners as a request; the connection is ready once one of them approves it.
Post under your name
Besides the organization's app, each person can connect their own GitHub account. With it, what Lean and the agent do on GitHub is posted under your name (with the Leanmote Agent app badge) instead of as the bot.
In Lean, click Integrations.
In the GitHub row that says Posted under your name, click Connect my account.
GitHub asks you to authorize the Leanmote Agent app for your account. If you already authorized it before, you go straight back to Leanmote and the row says Your account.
Once it is connected:
What you ask Lean to do on GitHub (comment on or review a pull request) is posted as you.
Agent proposals you approve are posted as you. The ones an agent runs on its own, with the permissions you gave it, are posted as the person who activated it.
If you have not connected it, Lean and the proposal card ask you to connect it before acting: nothing is ever posted as the bot in your place.
GitHub only allows what your account can do in that repository. If you do not have write access, adding labels, requesting reviewers or opening a fix fails, and Leanmote shows GitHub's reason.
The organization's app must stay installed: it defines which repositories Leanmote can reach.
To disconnect it, click Unlink next to that row in Integrations. Lean asks you to connect it again the next time it has to act on GitHub.
Connection details
Detail | Value |
Connection type | GitHub App (Leanmote Agent), installed on the organization. |
Who connects in GitHub | An owner of the GitHub organization installs the app. Anyone else can start it, and GitHub turns it into a request for the owners. |
Who can connect in Leanmote | Owner, Manager or Team Leader. |
Credential | Of the organization: it is the app installation, not a person's account. Every agent in your Leanmote organization uses it. |
Write access | Yes: pull requests, repository contents (merges, new branches and commits for fixes) and workflow files. |
Permissions requested
pull_requests:write— comment, close, turn into draft, request reviewers, label, mention and post review comments on pull requests.issues:write— GitHub serves pull request comments and labels through its issues endpoints.contents:write— merge pull requests, and create the branch and commits of a fix or of a CODEOWNERS change.workflows:write— needed only when a fix edits a file in.github/workflows/.metadata:read— required by GitHub for every app: basic repository information.checks:readandstatuses:read— read the CI results of a pull request so a review comment can mention them.organization_projects:write,actions:writeanddeployments:read— no action uses them today. They are under review to be removed.
When the app adds a permission, GitHub does not grant it to existing installations until an organization owner accepts the update. Until then, an action that needs it fails with a missing-permission message instead of running.
Disconnect
In the Actions Hub, under Connections, click Manage. In Agent connections, click Disconnect next to GitHub and confirm. The agents stop using it.
To remove the access on GitHub's side as well, an organization owner uninstalls the Leanmote Agent app from the organization's settings, under GitHub Apps.
Related articles
Leanmote Agent connections
GitHub integration
