From 7029b22cbe610c1f6f330f2d1f63abdc2c9fc72e Mon Sep 17 00:00:00 2001 From: braedonsaunders Date: Tue, 28 Apr 2026 15:12:55 -0400 Subject: [PATCH] ci: add codeflow card workflow with teal accent Renders an auto-updating codebase stats SVG to .github/codeflow-card.svg on every push to main / merged PR, and surfaces it under the header in the README. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/codeflow-card.yml | 45 +++++++++++++++++++++++++++++ README.md | 4 +++ 2 files changed, 49 insertions(+) create mode 100644 .github/workflows/codeflow-card.yml diff --git a/.github/workflows/codeflow-card.yml b/.github/workflows/codeflow-card.yml new file mode 100644 index 00000000..fa5c3c15 --- /dev/null +++ b/.github/workflows/codeflow-card.yml @@ -0,0 +1,45 @@ +name: CodeFlow Card + +# Recomputes the codeflow stats card on every merge to main and on every +# closed PR. The Action commits .github/codeflow-card.svg back to the repo; +# the README references it via . + +on: + push: + branches: [main] + pull_request: + types: [closed] + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +concurrency: + group: codeflow-card-${{ github.ref }} + cancel-in-progress: false + +jobs: + card: + runs-on: ubuntu-latest + # Skip PR-close events that weren't merged (avoids running on closed-without-merge). + if: github.event_name != 'pull_request' || github.event.pull_request.merged == true + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Render CodeFlow Card + uses: braedonsaunders/codeflow/card@v1 + with: + # Single SVG that adapts to the viewer's system theme via + # prefers-color-scheme — looks native on light and dark READMEs. + theme: auto + style: compact + # Green/blue accent (preset). + accent: teal + # Public README — show structure, not judgment. + show-grade: false + show-score: false + # Flip to true to enable thermal-receipt PR comments on every merge. + receipts: false diff --git a/README.md b/README.md index 15d9598b..d3812213 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,10 @@ +

+ OpenStudio codebase stats — powered by codeflow +

+ OpenStudio is a browser-based collaborative music studio built for real rehearsals, writing sessions, lessons, and online jams. The easiest way to use it is the hosted app at [openstudio.cafe](https://openstudio.cafe). If you want to make music with it, start there. If you want to self-host it or contribute to the codebase, this repository has what you need below.