Repository navigation
Conversation
[Medium impact] The changes affect GitHub issue labeling, moderation, and repository checks. Fix the incomplete domain collection before merging; it can close reports that include a working new website. FindingsSummaryThis PR replaces shell-based issue automation with shared scripts and adds checks for GitHub workflows and forms.
Previous-thread review:
Reviews (6) · Last reviewed commit: "chore(github): remove stale actionlint i..." · Reviewed by Greptile |
Co-Authored-By: Antigravity <noreply@google.com>
…in CI Co-Authored-By: Antigravity <noreply@google.com>
Co-Authored-By: Gemini <gemini@google.com>
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
Co-Authored-By: Gemini <gemini@google.com>
… theme labels Co-Authored-By: Gemini <gemini@google.com>
…iliation standards Co-Authored-By: Gemini <gemini@google.com>
…es-and-label-workflows # Conflicts: # AGENTS.md # package.json
| while ((bareMatch = bareDomainRegex.exec(bareScanText)) !== null) { | ||
| const token = bareMatch[1]; | ||
| const tld = token.split('.').pop().toLowerCase(); | ||
| if (!UNAMBIGUOUS_BARE_TLDS.has(tld)) continue; |
There was a problem hiding this comment.
A domain-change report mentioning a dead https://old-mirror.example/ and a working bare novel.to keeps only the dead URL because to is not in UNAMBIGUOUS_BARE_TLDS. The checker then treats that partial list as every submitted URL and closes the report.
Recognize valid bare domains, or skip automatic closure when some domain-like text was left unchecked.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| types: | ||
| - opened | ||
| - edited | ||
| - labeled |
There was a problem hiding this comment.
If a maintainer adds an unrelated label during an active label update, the new labeled run shares the same concurrency group and cancels it through cancel-in-progress: true. The replacement job then skips labels other than bug and plugin request, so nothing finishes the update. This can leave missing or stale labels until another edit.
Filter unrelated events before they share the group, or avoid cancelling active updates.
Checklist
pnpm run check:github/pnpm run test:scripts[56/56], CLI smoke tests, ESLint/Prettier, Python YAML/schema validation, andactionlint)type(scope): descriptionSummary
Key fixes:
plugin:labels, fix CJK/Arabic matching & enforce GitHub 50-char limit:auto-label-issue.cjssharesmatchPluginEntries/buildSelectionMatcherviaissue-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.plugin requestsites & theme auto-labeler hardening:site-reachability.cjsresolves all DNS records before connecting, blocks if any record is private/loopback/dual-homed before invokingcurl, fails over across up to 4 validated public IPs per hop pinned via--resolve, stops at the first HTTP response (maxRedirs: 0) for reachability checks so3xxredirects count as reachable even if the redirect target fails, and walks redirects hop-by-hop for theme probes;check-plugin-request-site.cjs+theme_auto_label.yml(cancel-in-progress: falseso non-URL edits don't cancel initial checks) probe HTTPS/HTTP with 1 retry, treat HTTP100..599(including Cloudflare403/503) as reachable, fail safe on TLS cert errors and private IPs, re-check the live GitHub issue before closing viaclose-invalid-issue.cjs, run all 6 theme probes (madara,lightnovelwpwithlighnovelwpfallback,hotnovelpub,fictioneer,novel fire,readwn) through the same SSRF-safe helper, and reconcile (add/remove) managedtheme: *labels on edits viacomputeThemeLabelPlanwhile preserving manual unmanaged labels.bugandDomain Changedreports (check-bug-report-site.cjsinissue_moderator.yml): onopenedandeditedopenbugissues (after duplicate moderation and skippingOWNER/MEMBER/COLLABORATOR/Bot, unchanged targets onedited, and dynamickomga), resolves plugin site URLs fromplugins/(373/374keys.jsonentries) for regular bug reports or extracts candidate new URL(s) from descriptive sections (excluding old domain & subdomain apexes on non-shared hosts, screenshots, and meta links, without skipping bare domains when explicit URLs appear) forDomain Changedreports; when all target URLs fail to respond over HTTPS and HTTP, re-checks the live issue (including the unresolved-plugin guard) before closing asnot_plannedwithinvalidand website-owner / Domain Changed guidance (with geo-block appeal notes).issue_moderator.ymlfetches the live issue (--issue-file) beforevalidate-issue-template.cjsdecides to close viaclose-invalid-issue.cjs(preventing staleopened-event close races when an author fixes a form immediately after opening), replaces obsolete Markdown rules, pinstachiyomiorg/issue-moderator-action@32a31ab12ad6e68ebf4c65408f47bef132d4fd3c # v2, gatesgenerate-issue-index.ymldispatches on actual post-moderationstate/labelschanges, and updatesblank_report_issue.yml/request_feature.ymltoreleases/latest..github/CI & local parity (github-scripts-check.yml,check:github,CODING_STANDARDS.md): 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, sharedvalidate-github-yaml.py(UniqueKeyLoader+ Issue Form schema validation onrenderIssueTemplate(blank_report_issue.yml, keys.json)), directreport_issue.ymlPR-edit guard, SHA-256-verifiedactionlintv1.7.12, localnpm run check:githubparity (check-github.cjs),.cjs/.mjsinformat/format:check, and## GitHub workflows & scriptsrules inCODING_STANDARDS.md.Evidence
pnpm run check:github(node .github/scripts/check-github.cjs --require-actionlint):node --test .github/scripts/*.test.cjs: 56/56 passing (14 auto-label/template-renderer + 6 shared SSRF/failover/theme/close-API + 10 plugin-request reachability/theme-plan + 8 bug/domain-change reachability + 2 issue-index + 16 template-validation & YAML schema drift-guard tests)--max-warnings 0) on.github/scripts/*.cjs: 0 errors, 0 warningsvalidate-github-yaml.py(UniqueKeyLoader+ Issue Form schema): 16/16 YAML files validated (including renderedblank_report_issue.yml)actionlintacross all.github/workflows/*.yml: 0 errors, 0 warningsMerge Danger
Door: Two-way
Only
.github/workflows/scripts/templates,package.json,AGENTS.md, andCODING_STANDARDS.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, documentation, and local test/lint scripts.
Optional maintainer GitHub UI cleanup after merge:
plugin:label.theme: lighnovelwp->theme: lightnovelwp.AI-assisted (Antigravity / Gemini).