Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh
30 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

The plan says what g1t is for without measuring it against other products1import assert from "node:assert/strict";
2import { test } from "node:test";
3
4import { confirmsPurge, daysLeft, wentSummary } from "./deleted-workspaces.ts";
5
6test("what went reads as one line", () => {
7 assert.equal(
8 wentSummary({ repositories: 3, projects: 1, members: 2, billing: null, protected: false }),
9 "3 repositories, 1 project, 2 members",
10 );
11 assert.equal(
12 wentSummary({ repositories: 1, projects: 0, members: 1, billing: null, protected: false }),
13 "1 repository, 0 projects, 1 member",
14 );
15});
16
17test("days left round up, and none once it is due", () => {
18 const now = Date.parse("2026-10-06T12:00:00Z");
19 assert.equal(daysLeft("2026-11-05T12:00:00Z", now), 30);
20 assert.equal(daysLeft("2026-10-06T13:00:00Z", now), 1);
21 assert.equal(daysLeft("2026-10-06T12:00:00Z", now), 0);
22 assert.equal(daysLeft("2026-10-01T00:00:00Z", now), 0);
23 assert.equal(daysLeft("not a date", now), 0);
24});
25
26test("a purge is confirmed by the slug alone", () => {
27 assert.ok(confirmsPurge("acme", " Acme "));
28 assert.ok(!confirmsPurge("acme", ""));
29 assert.ok(!confirmsPurge("acme", "acme-inc"));
30});

This file's history is long; its oldest lines are credited to the oldest commit read.