From 3d97d2c45aaa5912365cfb4648d53c8e0d9669f2 Mon Sep 17 00:00:00 2001 From: dakshcodez Date: Sat, 15 Aug 2026 16:06:48 +0530 Subject: [PATCH] Dogfood docmend on its own repo Adds .github/workflows/docmend.yml, triggering on pull_request for changes under packages/*/src/** or any *.md file. References the action locally (uses: ./) rather than a published owner/repo@ref, since it's the same repo and there's no published v1 tag yet - this also means every PR always tests against the action's current code on that branch, not a potentially-stale published version. Restricted the trigger to source/doc-touching paths rather than every PR, given how real the free-tier rate-limit and quota costs turned out to be during the Phase 5 real-repo testing (TESTING.md) - no reason to burn embedding calls re-indexing on a PR that only touches, say, CI config. Requires a GEMINI_API_KEY repository secret to actually run, which isn't something to set up from here - left to be added via the GitHub web UI (Settings > Secrets and variables > Actions) rather than any CLI mechanism, given the earlier incident this session where a key typed via a shell command ended up in the visible conversation transcript. Validated the workflow file is syntactically valid YAML. The actual trigger path can't be exercised by this PR itself, since it only touches .github/workflows/ (matching neither path filter) - real end-to-end verification happens naturally on the next PR that touches source or docs after this merges. --- .github/workflows/docmend.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/docmend.yml diff --git a/.github/workflows/docmend.yml b/.github/workflows/docmend.yml new file mode 100644 index 0000000..fbf04ac --- /dev/null +++ b/.github/workflows/docmend.yml @@ -0,0 +1,22 @@ +name: docmend + +on: + pull_request: + paths: + - 'packages/*/src/**' + - '**/*.md' + +permissions: + contents: write + pull-requests: write + +jobs: + docmend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # need the PR's base commit available, not just the head + - uses: ./ + with: + gemini-api-key: ${{ secrets.GEMINI_API_KEY }}