refactor(ci): move GitHub automation scripts under scripts/ci

The repository had three script roots with three test entry points. The automation scripts now live in scripts/ci and run through scripts/test.mjs, which gained a quick automation profile and includes them in the ci and release profiles.

The workflows keep checking the scripts out from the workflow commit, never from the PR branch. stateKey now returns its fallback explicitly, because the file is inside the empty-catch guard once it sits under scripts/. The review and diagnosis exclude lists also skip the generated frontend wordmark module.
This commit is contained in:
Nwflower committed 2026-12-04 23:24:36 -07:00
1 parent bd7c9abaa3
commit 87e7ac8774
15 files changed
+25 -17

No files matched your search

-3
View File
@@ -52,9 +52,6 @@ jobs:
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Test GitHub automation scripts
run: node --test ".github/scripts/*.test.mjs"
- name: Verify CHANGELOG.md matches current version
shell: pwsh
run: |
+1 -1
View File
@@ -66,4 +66,4 @@ jobs:
PR_REVIEW_LLM_MODEL: ${{ vars.PR_REVIEW_LLM_MODEL || 'glm-5.4' }}
PR_REVIEW_LLM_PROTOCOL: ${{ vars.PR_REVIEW_LLM_PROTOCOL || 'anthropic' }}
PR_REVIEW_LLM_EXTRA_BODY: ${{ vars.PR_REVIEW_LLM_EXTRA_BODY }}
run: node .github/scripts/code-diagnosis.mjs
run: node scripts/ci/code-diagnosis.mjs
+2 -2
View File
@@ -34,7 +34,7 @@ jobs:
ref: ${{ github.workflow_sha }}
persist-credentials: false
sparse-checkout-cone-mode: false
sparse-checkout: /.github/scripts/
sparse-checkout: /scripts/ci/
- name: Triage issue
env:
GITHUB_TOKEN: ${{ github.token }}
@@ -43,4 +43,4 @@ jobs:
PR_REVIEW_LLM_MODEL: ${{ vars.PR_REVIEW_LLM_MODEL || 'glm-5.3-flash' }}
PR_REVIEW_LLM_PROTOCOL: ${{ vars.PR_REVIEW_LLM_PROTOCOL || 'anthropic' }}
PR_REVIEW_LLM_EXTRA_BODY: ${{ vars.PR_REVIEW_LLM_EXTRA_BODY }}
run: node .github/scripts/issue-triage.mjs
run: node scripts/ci/issue-triage.mjs
+2 -2
View File
@@ -20,8 +20,8 @@ jobs:
ref: ${{ github.workflow_sha }}
persist-credentials: false
sparse-checkout-cone-mode: false
sparse-checkout: /.github/scripts/pr-model.mjs
sparse-checkout: /scripts/ci/pr-model.mjs
- name: Check the model and coding tool declarations
env:
GITHUB_TOKEN: ${{ github.token }}
run: node .github/scripts/pr-model.mjs
run: node scripts/ci/pr-model.mjs
+3 -3
View File
@@ -46,8 +46,8 @@ jobs:
persist-credentials: false
sparse-checkout-cone-mode: false
sparse-checkout: |
/.github/scripts/pr-review.mjs
/.github/scripts/pr-review-language.mjs
/scripts/ci/pr-review.mjs
/scripts/ci/pr-review-language.mjs
/.opencodereview/rule.json
/docs/pr-review-guidelines.md
/docs/design-guidelines.md
@@ -108,4 +108,4 @@ jobs:
PR_REVIEW_STATE_DIR: ${{ runner.temp }}/pr-review-state/sessions
PR_REVIEW_SESSION_HOME: ${{ runner.temp }}/pr-review-state/sessions
PR_REVIEW_REUSE_INCOMPLETE: "true"
run: node .github/scripts/pr-review.mjs
run: node scripts/ci/pr-review.mjs