GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Convert most remaining CI scripts to TypeScript in `pr-checks` by mbg · Pull Request #4064 · github/codeql-action Conversation
|
| File | Description |
|---|---|
pr-checks/update-release-branch.ts |
Uses shared command helpers. |
pr-checks/update-bundle.ts |
Adds TypeScript bundle updater. |
pr-checks/update-bundle.test.ts |
Tests bundle metadata updates. |
pr-checks/config.ts |
Exports source, library, and defaults paths. |
pr-checks/command.ts |
Adds shared command and Git helpers. |
pr-checks/check-sarif.ts |
Adds TypeScript SARIF validator. |
pr-checks/check-sarif.test.ts |
Tests SARIF validation. |
pr-checks/check-js.ts |
Replaces generated-JavaScript shell check. |
pr-checks/check-cs-config.ts |
Adds TypeScript configuration validator. |
pr-checks/check-cs-config.test.ts |
Tests configuration comparison. |
.github/workflows/update-bundle.yml |
Runs the new bundle updater. |
.github/workflows/script/check-js.sh |
Removes superseded shell script. |
.github/workflows/pr-checks.yml |
Runs the TypeScript JavaScript check. |
.github/actions/update-bundle/index.ts |
Removes the old updater implementation. |
.github/actions/update-bundle/action.yml |
Removes the old composite updater. |
.github/actions/check-sarif/index.js |
Removes the old SARIF implementation. |
.github/actions/check-sarif/action.yml |
Delegates SARIF validation to pr-checks. |
.github/actions/check-codescanning-config/index.ts |
Removes the old configuration checker. |
.github/actions/check-codescanning-config/action.yml |
Delegates configuration validation to pr-checks. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| EXPECTED_CONFIG_FILE_CONTENTS: '${{ inputs.expected-config-file-contents }}' | ||
| run: ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS" | ||
| run: | | ||
| npx tsx ../action/pr-checks/check-cs-config.ts \ |
| --queries-run "$QUERIES_RUN" \ | ||
| --queries-not-run "$QUERIES_NOT_RUN" | ||
| else | ||
| npx tsx ../action/pr-checks/check-sarif.ts \ |
| function main() { | ||
| // Sanity check that repo is clean to start with | ||
| try { | ||
| runGit(["diff", "--exit-code"], { allowNonZeroExitCode: false }); |
| core.summary.addHeading("Transpiled JS diff", 3); | ||
| core.summary.addCodeBlock(fs.readFileSync(diffFile, "utf-8"), "diff"); |
| await it("passes when queries arrays match after sorting", () => { | ||
| const actual: UserConfig = { paths: ["b", "a", "c"] }; | ||
| const expected = JSON.stringify(actual); | ||
| assert.doesNotThrow(() => checkConfiguration(actual, expected)); |
| const SOURCE_ROOT = path.join(REPO_ROOT, "src"); | ||
| export const SOURCE_ROOT = path.join(REPO_ROOT, "src"); | ||
|
|
||
| /** The `src` directory. */ |
At least 1 approving review is required to merge this pull request.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.