@bridgebrew/github
v0.0.6
Published
GitHub for every plugin: GitHub's API through the GitHub CLI (gh) signed in on this machine. Bridge keeps no GitHub token.
Readme
GitHub (@bridgebrew/github)
GitHub's API for every plugin of the workspace, through the GitHub CLI (gh) signed in on this machine. Bridge keeps
no GitHub token: gh holds the sign-in.
Install
From the Marketplace (the Plugins screen), or:
bridge install @bridgebrew/github --workspace <slug>It needs gh 2.81.0 or later (brew install gh, or https://cli.github.com), signed in with gh auth login.
Use
It has no screen: other plugins use it to call GitHub's REST and GraphQL APIs and to read pull requests (their state, checks, mergeability, latest comments and reviews).
- GitHub CLI: the
ghcommand Bridge runs; its full path when Bridge does not find it (which ghin a terminal). Defaultgh. Test checks it is found, recent enough and signed in.
When gh is missing, signed out or too old, Bridge shows it as a toast and in Settings › Health, with what to do; it
clears once GitHub answers again. At most a few gh calls run at once, to stay within GitHub's rate limits.
Contracts
Implements github.
Limits
Only github.com: every call goes to github.com, whatever GH_HOST says.
