From a211f0aa9a8e59b0fb03613ffb257bac5b3403d3 Mon Sep 17 00:00:00 2001 From: Aileen Booker Date: Mon, 15 Jun 2026 20:10:57 +0700 Subject: [PATCH] Added theme CI gate and agent docs Added a stable `All tests pass` gate for the repository test workflow and introduced concise `AGENTS.md` guidance with a `CLAUDE.md` symlink so agents can run the right commands and avoid committing generated or local-only files. --- .github/workflows/test.yml | 10 ++++++++++ AGENTS.md | 25 +++++++++++++++++++++++++ CLAUDE.md | 1 + 3 files changed, 36 insertions(+) create mode 100644 AGENTS.md create mode 120000 CLAUDE.md diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0152afae..60919011 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,3 +27,13 @@ jobs: - run: pnpm install --frozen-lockfile - run: pnpm test + + all-tests-pass: + name: All tests pass + if: always() + needs: [test] + runs-on: ubuntu-latest + steps: + - name: Verify all required jobs succeeded + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: exit 1 diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 00000000..2312e2d2 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,25 @@ +# AGENTS.md + +## Scope + +This repository is the custom Source-based theme for activitypub.ghost.org. Keep changes focused on theme source, generated assets, CI, and repo-level metadata for this repository. + +## Commands + +Use pnpm for this repo, pinned by package.json. + +```bash +pnpm install --frozen-lockfile +pnpm dev +pnpm test:ci +pnpm zip +``` + +Run the test command before opening a PR when theme files, generated assets, dependencies, or CI change. + +## Boundaries + +- Edit source CSS, JavaScript, Handlebars templates, partials, and package metadata intentionally. +- Keep generated assets/built/ files in sync when source assets change and the repo tracks those outputs. +- Do not commit node_modules/, local Ghost content, generated zip files outside tracked release expectations, or secrets. +- Repo settings, descriptions, and branch rules belong on the GitHub repository; internal clean-repos metadata stays in TryGhost/cleanrepos. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 00000000..47dc3e3d --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file