Repository navigation
Conversation
[Medium impact] The changes affect issue handling and GitHub checks in this repository. Fetch the current issue before automatic closing; otherwise, an author’s corrected issue can still be closed. Findings
SummaryThis PR updates issue forms, label automation, moderator checks, and GitHub workflow checks.
Reviews (3) · Last reviewed commit: "fix(github): address code review finding..." · Reviewed by Greptile |
Co-Authored-By: Antigravity <noreply@google.com>
…in CI Co-Authored-By: Antigravity <noreply@google.com>
| node .github/scripts/validate-issue-template.cjs > "$RUNNER_TEMP/template-check.json" | ||
| if [ "$(jq -r '.shouldClose' "$RUNNER_TEMP/template-check.json")" = "true" ]; then | ||
| jq -n '{labels: ["invalid"]}' \ | ||
| | gh api --method POST "repos/$REPOSITORY/issues/$ISSUE_NUMBER/labels" --input - >/dev/null | ||
| jq '{body: .comment}' "$RUNNER_TEMP/template-check.json" \ | ||
| | gh api --method POST "repos/$REPOSITORY/issues/$ISSUE_NUMBER/comments" --input - >/dev/null | ||
| gh api --method PATCH "repos/$REPOSITORY/issues/$ISSUE_NUMBER" \ |
There was a problem hiding this comment.
If an author fixes missing information while this job waits or starts up, the close decision still uses the original opened event. The workflow adds invalid, posts a comment, and closes the now-valid issue. Later edited runs skip validation and cannot undo this. Fetch the current issue body, labels, and state before deciding to close it.
Checklist
pnpm run test:scripts[31/31], CLI smoke tests, ESLint/Prettier, Python YAML/schema validation, andactionlintv1.7.12)type(scope): descriptionSummary
Key fixes:
plugin:labels, fix CJK/Arabic matching & enforce GitHub 50-char limit:auto-label-issue.cjssharesbuildSelectionMatcherviaissue-parsing.cjs(handling\u200eLRM Arabic controls, comma-containing Chinese/Korean prefixes, and colons inside names likeRe:Library), truncates long plugin labels to<= 50chars while preserving[cleanId]forgenerate-issue-index.cjs(preventing batch API422errors across all 374keys.jsonentries), and computes{ add, remove }reconciliation (computeLabelPlan) onopened,edited, andlabeled.language:auto-labeling on plugin requests: expandsLANGUAGE_ALIASES(+10 languages + delimited primary language parsing), preserves manually added unlistedlanguage: *labels viaMANAGED_LANGUAGE_LABELS, and safely pre-creates missinglanguage: *labels with#ADD8E6.madara,lightnovelwpwith legacylighnovelwpfallback,hotnovelpub,fictioneer,novel fire,readwn) behind a shared probe helper, fixespipefail/SIGPIPEfalse negatives on large HTML pages by downloading to"$RUNNER_TEMP"beforegrep -q, validateshttp_code == 200+Content-Type(text/css/javascript) to reject soft-404 redirects, strips scheme case-insensitively while rejecting local/private domains and private/loopback%{remote_ip}redirect targets, and gateslabeledruns onplugin request(plusedited).auto-close-rulesand non-existentdo-not-autocloseinissue_moderator.ymlwithvalidate-issue-template.cjsonissues.opened(auto-closing non-template, blank,_No response_-filled, or unchecked-Acknowledgementsissues asnot_plannedwith theinvalidlabel and an explanatory comment linking to/issues/new/choose, while exemptingOWNER/MEMBER/COLLABORATOR/Botand preserving Markdown headings inside required textareas), pinstachiyomiorg/issue-moderator-action@32a31ab12ad6e68ebf4c65408f47bef132d4fd3c # v2, gatesgenerate-issue-index.ymldispatches on actual post-moderationstate/labelschanges, and updatesblank_report_issue.yml/request_feature.ymltoreleases/latest(leaving generatedreport_issue.ymluntouched perCODING_STANDARDS.md)..github/CI (github-scripts-check.yml): triggers on PRs without a workflow-levelpaths:filter (safe as a Required Status Check via an in-jobfetch-depth: 2.github/diff gate), enforces clean-tree afternode --test, Prettier + ESLint (--max-warnings 0) on.github/scripts/*.cjs, PythonUniqueKeyLoader+ Issue Form schema validation onrenderIssueTemplate(blank_report_issue.yml, keys.json), directreport_issue.ymlPR-edit guard, and SHA-256-verifiedactionlintv1.7.12 across all workflows.Evidence
pnpm run test:scripts(node --test .github/scripts/*.test.cjs): 31/31 passing (16 auto-label/index/template tests + 15 template-validation & YAML schema drift-guard tests)./node_modules/.bin/prettier --check ".github/scripts/*.cjs"&./node_modules/.bin/eslint --max-warnings 0 ".github/scripts/*.cjs": 0 errors, 0 warningsUniqueKeyLoader+ Issue Form schema validation (15/15static YAML files locally; CI validates16/16including renderedblank_report_issue.yml+keys.json)actionlintv1.7.12 across all.github/workflows/*.yml(includingpublish-plugins.ymlwith targetedSC2086:info:1:29ignore): 0 errors, 0 warningsMerge Danger
Door: Two-way
Only
.github/workflows, templates,package.json, andAGENTS.mdare modified; no plugin source files, built manifests,.husky/pre-commit, or generatedreport_issue.ymlare touched.theme_auto_label.ymlchecks fortheme: lightnovelwpand falls back totheme: lighnovelwpif present, avoiding duplicate label creation on merge.Blast Radius: Narrow
Limited to GitHub issue/PR automation and local test/lint scripts.
Optional maintainer GitHub UI cleanup after merge:
plugin:label.theme: lighnovelwp->theme: lightnovelwp.AI-assisted (Antigravity / Gemini).