Expand description
Connect with GitHub, desktop side: the installations of the AgentMux GitHub App.
An account’s agents get tokens for an installation only once the account is linked to it
(the broker’s record, muxbus::github_broker). This is what Connectors → Accounts drives
(github.installations):
- list: the account’s links, as rows;
- start: open GitHub’s install page for the App, and remember which installations the person’s GitHub sign-in could already see, so that a new one is theirs;
- sync: link an installation that appeared since
start(called while the person is on GitHub; the broker checks the installation against their own token); - refresh: present a fresh user token to the broker, which re-reads what the account can see
(
links/revalidate), and link every installation the sign-in sees that isn’t linked yet; - unlink: end the account’s link; the installation stays on GitHub.
The GitHub user token is read here and goes to the broker and to GitHub only; nothing of it is stored or shown.
Structs§
- Github
Installation - One of the account’s links to an installation, for the list.
- Github
Installations - What
github.installationsanswers. - Github
Installations Req - Request for
github.installations.
Enums§
- Github
Installations Action - What
github.installationsis asked to do.
Functions§
- installation_
ids - The installation ids in a page of
GET /user/installations. - is_
install_ page - The install page is only opened if it is the App’s page on GitHub: a short list of characters a page address needs after the prefix, so nothing in it means anything to the shell that opens it.
- new_
since - The installations that were not there when the trip began.
- row_of
- The row for one link.
- run
- What the call did, and the account’s links after it.
- unlinked
- The installations on GitHub that the account has no live link to.