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

Commit

Start here opens what it picked (#51): its title links to the pull request, issue or build, and for a pull request its button says "Open pull request" rather than "Merge" or "Review", which read as if pressing it would merge on the spot; Next still says what it waits for. Checked: the site's typecheck and tests, and Start here rendered on Home with a pull request ready to merge.

G1t-Session:
ses_01m4ygex20ezftekecszgw2gv5
syntaqxcommitted Parente3d0184Browse files
1 file+7−20/1 viewed
+7−2
249249
250250 // --- Start here -----------------------------------------------------------------
251251
252+/** Rows about a pull request: Start here's button opens it, and says so, rather than naming the step (Merge, Review) it can't take there. */
253+const PULL_KINDS = new Set<AttentionKind>(["ready", "review", "pull_blocked"]);
254+
252255 export function StartHere({ attention, now }: { attention: Attention; now: number }) {
253256 const start = attention.start;
254257 return (
266269 <div className="flex items-start gap-3">
267270 <span className="mt-0.5 shrink-0">{ICON[start.row.kind]}</span>
268271 <div className="min-w-0">
269− <p className="text-[0.9375rem] leading-snug font-semibold text-fg">{start.row.title}</p>
272+ <Link to={start.row.action.to} className="text-[0.9375rem] leading-snug font-semibold text-fg hover:underline">
273+ {start.row.title}
274+ </Link>
270275 <p className="mt-1 line-clamp-2 text-xs text-muted">{start.row.detail}</p>
271276 </div>
272277 </div>
307312 to={start.row.action.to}
308313 className="mt-4 inline-flex h-8 items-center gap-1.5 rounded-lg bg-accent px-3 text-sm font-medium text-bg transition-colors hover:bg-accent-hover"
309314 >
310− {start.row.action.label}
315+ {PULL_KINDS.has(start.row.kind) ? "Open pull request" : start.row.action.label}
311316 <ArrowRight size={14} />
312317 </Link>
313318 </div>

Comments

Sign in to comment.