Skip to content

chore: type the remove rca needed label sheets script and fix its oxlint violations - #334

Open
cryptodev-2s wants to merge 6 commits into
mainfrom
chore/fix-oxlint-sheets-script-types
Open

cryptodev-2s wants to merge 6 commits into
mainfrom
chore/fix-oxlint-sheets-script-types

Conversation

@cryptodev-2s

@cryptodev-2s cryptodev-2s commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Adds local types for the untyped imports in the remove rca needed label sheets script and fixes its other oxlint violations, with no runtime changes.


Note

Low Risk
CI workflow script refactor focused on types and lint; no new auth or data paths, with behavior intended to stay the same.

Overview
Tightens .github/scripts/remove-rca-needed-label-sheets.ts for local TypeScript/lint compliance without intended behavior changes.

Runtime-only imports (@actions/core, @actions/github, googleapis) are imported under raw* aliases and narrowed with minimal local types (CoreLike, OctokitLike, GoogleLike, etc.). @ts-ignore becomes @ts-expect-error, interface/any becomes type/unknown, and error paths use a small ErrorLike helper. The loop still removes RCA-needed when a sheet row exists; dry-run vs live branches are reordered but equivalent, and counters/logging use += 1 and stricter checks (e.g. unicode regex, explicit null/undefined).

oxlint-suppressions.json drops the bulk of suppressions for this script; only typescript/prefer-nullish-coalescing remains (count 5). vitest.config.mts coverage floors for lines/statements tick down slightly (auto-updated thresholds).

Reviewed by Cursor Bugbot for commit bf9410b. Bugbot is set up for automated code reviews on this repo. Configure here.

@cryptodev-2s
cryptodev-2s marked this pull request as ready for review November 17, 2026 14:23
@cryptodev-2s cryptodev-2s self-assigned this Nov 17, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant