Repository navigation
chore: type the remove rca needed label sheets script and fix its oxlint violations - #334
Open
cryptodev-2s wants to merge 6 commits into
Open
cryptodev-2s wants to merge 6 commits into
cryptodev-2s wants to merge 6 commits into
Conversation
cryptodev-2s
marked this pull request as ready for review
November 17, 2026 14:23
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsfor local TypeScript/lint compliance without intended behavior changes.Runtime-only imports (
@actions/core,@actions/github,googleapis) are imported underraw*aliases and narrowed with minimal local types (CoreLike,OctokitLike,GoogleLike, etc.).@ts-ignorebecomes@ts-expect-error,interface/anybecomestype/unknown, and error paths use a smallErrorLikehelper. The loop still removesRCA-neededwhen a sheet row exists; dry-run vs live branches are reordered but equivalent, and counters/logging use+= 1and stricter checks (e.g. unicode regex, explicit null/undefined).oxlint-suppressions.jsondrops the bulk of suppressions for this script; onlytypescript/prefer-nullish-coalescingremains (count 5).vitest.config.mtscoverage 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.