Shows the runs of your GitHub repositories in the notch, under the GitHub Actions tile: whether a run works, passed or failed, its jobs as stages, and a request when a run waits for your review. Blossom only shows them: approving, re-running and cancelling happen on GitHub, in your browser.
The adapter reads GitHub through gh, the GitHub command line, signed in as you. It holds no token and writes nothing to GitHub: it only runs gh run list and gh run view. Why is in the decision, and what it shows when, in the specification.
brew install gh
gh auth login
gh run list --repo <owner>/<name> --limit 1The last command must print a run. If it says you are not signed in, or prints HTTP 404, the adapter will say the same and show nothing.
With gh installed and signed in, as above, Settings > Agents lists GitHub Actions. Turn its switch on: Blossom asks gh for your repositories, 200 at most and only your own, and lists them. Check the ones whose runs you want to see and click "Watch": Blossom adds this adapter with those repositories as its arguments and starts it. No token is asked for or written; the adapter uses the session of gh. A repository of an organization is added by hand, as below. "Disconnect", shown while it is off, takes the adapter out. See the decision.
Blossom includes this adapter as the package actions. Name the repositories to watch as its arguments, owner/name, or host/owner/name for GitHub Enterprise, in the configuration of Blossom, ~/Library/Application Support/Blossom/configuration.json:
{
"adapters": [{ "package": "actions", "arguments": ["you/app", "you/site"] }]
}It finds gh where Homebrew puts it also when Blossom is opened from Finder; see ../../documentation/decisions/commands.md.
To try it from this repository, after bun run build, edit the repository in adapters/actions/configuration.json and run from the root:
BLOSSOM_CONFIGURATION=adapters/actions/configuration.json apps/macos/build/Build/Products/Debug/Blossom.app/Contents/MacOS/BlossomThe adapter logs to the terminal that started Blossom. It polls every sixty seconds, so a run shows up within a minute.
blossom · ci. Two or more runs of one repository stack in one row of peek and of the command bar, blossom · 3 runs, that opens with ↩ or a click and lists them by workflow and branch. Two repositories of different owners with the same name are one project. A character that acts or hides, in any of the three, shows as its escape.Not run against real GitHub Actions runs. Use a repository of yours where Actions run, with a workflow you can start by hand, such as one with on: workflow_dispatch and two jobs.
gh workflow run <workflow> --repo <owner>/<name>. Within a minute the GitHub Actions tile appears in the ear. Hover the ear: peek shows the run as <repository> · <workflow> with its branch, a segment per job and the job it is at. Start the workflow again: peek shows one row, <repository> · 2 runs; click it, and the two runs are listed under it by workflow and branch. Click the row: detail lists the jobs, and ↩ opens the run in your browser.exit 1 in a step, and run it again: the toast says it failed and names the job that failed.gh run cancel <id> --repo <owner>/<name>. Within a minute it leaves the notch.GH_CONFIG_DIR=$(mktemp -d) GH_TOKEN= before the command, which hides your sign in from gh without signing you out: the terminal says gh is not signed in to github and nothing appears.