Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Workflow Step Renderer POC</title>
<style>
body { font-family: -apple-system, system-ui, sans-serif; max-width: 1480px; margin: 2rem auto; padding: 0 1rem; color: #1a1a1a; }
h1 { font-size: 1.25rem; }
.muted { color: #656d76; font-size: .85rem; }
.layout { display: grid; grid-template-columns: 320px 1fr; gap: 1.25rem; align-items: start;
#!/bin/bash
function current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
function current_repository() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return