From bc9c14b27657da0d9f6f3ccf4f79d2612c2b7f3a Mon Sep 17 00:00:00 2001 From: Laurie Reynolds Date: Sun, 28 Jun 2026 14:36:41 -0700 Subject: [PATCH] Add CODEOWNERS + markdownlint CI workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .github/CODEOWNERS: '* @lsr-explore' so the ruleset's 'Require review from Code Owners' requires your review on every change - .github/workflows/ci.yml: markdownlint check (npm ci + npm run lint:md) — adapted from templates/github/ci.yml for this snippet library; gives branch protection a real status check to require - .nvmrc: pin Node 22 (used by the workflow) Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/CODEOWNERS | 5 +++++ .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ .nvmrc | 1 + 3 files changed, 40 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/ci.yml create mode 100644 .nvmrc diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..306627a --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,5 @@ +# Code owners for dev-toolkit. +# Pairs with the branch ruleset's "Require review from Code Owners": every change +# needs @lsr-explore's review before it can merge to a protected branch. +# (As repo admin on the ruleset's bypass list, you can still merge your own PRs.) +* @lsr-explore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f7c1aa9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +# CI for dev-toolkit. +# +# Adapted from templates/github/ci.yml: this repo is a snippet *library* (npm + +# markdownlint), not a pnpm frontend app, so it runs the markdown lint rather than +# lint/typecheck/test. Gives branch protection a real status check to require. +name: CI + +on: + push: + pull_request: + +# Cancel superseded runs on the same ref so PRs don't queue stale jobs. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + markdownlint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm + + - name: Install + run: npm ci + + - name: Lint Markdown + run: npm run lint:md diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..2bd5a0a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22