Skip to content

0.9.0 · Your CI, found on its own

Choose a tag to compare

@leduss leduss released this 17 Oct 20:51
· 8 commits to main since this release

Live demo · Changelog · Journal des versions (FR)

Install or update:

npx shadcn@latest add @pixel-openspace/pixel-openspace --overwrite

Then, in your project:

// app/api/ci/route.ts
import { githubAgents } from '@/components/pixel-openspace/github'

export async function GET() {
  return Response.json(await githubAgents())
}

Added

  • githubAgents(), in components/pixel-openspace/github.ts: your project's CI in the room with two lines in an API route. It finds the GitHub repository on its own (on Vercel, in GitHub Actions, or from the origin remote in development) and turns each workflow into an agent, with its runs of the day on the timeline. GITHUB_TOKEN is optional for a public repository; the answer is cached a minute with it, five without.

Fixed

  • With --github, runs started by a release, a schedule or by hand counted only if their branch was the default one, and a release carries the name of its tag: a release workflow showed an old manual run and no run of the day. Now only pull requests and pushes to other branches are left out.