GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add eslint for `pr-checks` by mbg · Pull Request #3572 · github/codeql-action

Conversation

@mbg

@mbg mbg commented Mar 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

(Based on #3573, which should be merged first.)

Adds an eslint configuration for the pr-checks folder (largely based on the root configuration), updates the .ts files in pr-checks to resolve some linter errors.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Which use cases does this change impact?

Environments:

  • Testing/None - This change does not impact any CodeQL workflows in production.

How did/will you validate this change?

  • End-to-end tests - I am depending on PR checks (i.e. tests in pr-checks).

If something goes wrong after this change is released, what are the mitigation and rollback strategies?

  • Development/testing only - This change cannot cause any failures in production.

How will you know if something goes wrong after this change is released?

  • Other - Please provide details.

Are there any special considerations for merging or releasing this change?

  • No special considerations - This change can be merged at any time.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mbg mbg self-assigned this Mar 12, 2026
@github-actions github-actions Bot added size/M Should be of average difficulty to review size/XXL May be extremely hard to review and removed size/M Should be of average difficulty to review labels Mar 12, 2026
@mbg
mbg force-pushed the mbg/pr-checks/eslint branch 2 times, most recently from d25105c to 1621f40 Compare March 12, 2026 18:16
@mbg
mbg changed the base branch from main to mbg/esbuild/no-package-json March 12, 2026 19:02
@mbg
mbg force-pushed the mbg/pr-checks/eslint branch from 1621f40 to 994858d Compare March 12, 2026 19:13
@github-actions github-actions Bot added size/M Should be of average difficulty to review and removed size/XXL May be extremely hard to review labels Mar 12, 2026
@mbg
mbg force-pushed the mbg/pr-checks/eslint branch 2 times, most recently from 7a26f16 to 4b1f21e Compare March 12, 2026 19:52
@mbg
mbg marked this pull request as ready for review March 12, 2026 19:52
@mbg
mbg requested a review from a team as a code owner March 12, 2026 19:52
Copilot AI review requested due to automatic review settings March 12, 2026 19:52
Copilot started reviewing on behalf of mbg March 12, 2026 19:52
View session
Copilot AI reviewed Mar 12, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds ESLint coverage for the pr-checks TypeScript code and updates CI and scripts so pr-checks code is linted and tested consistently alongside the main repo.

Changes:

  • Extend the root ESLint flat config to include pr-checks/**/*.ts using pr-checks/tsconfig.json.
  • Refactor pr-checks TypeScript to satisfy linting/type-checking (step typing and string template cleanups).
  • Update CI workflows and scripts (caching, installs, and sync-back filename) and introduce npm workspaces wiring.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pr-checks/sync.ts Adds a minimal Step type and refactors string construction to be lint-friendly.
pr-checks/sync-back.ts Formatting/import tweaks to satisfy lint rules.
pr-checks/sync-back.test.ts Updates test text/import path and changes test registration style to satisfy linting.
eslint.config.mjs Enables linting for pr-checks with the correct TS project and adjusts rules.
.github/workflows/pr-checks.yml Adjusts caching and install steps; runs pr-checks tests without a local npm ci step.
.github/workflows/rebuild.yml Updates script filename from sync_back.ts to sync-back.ts.
package.json Adds npm workspaces configuration to include pr-checks.
package-lock.json Updates lockfile to reflect workspaces and newly installed workspace deps.
Comments suppressed due to low confidence (1)

pr-checks/sync-back.test.ts:43

  • Using async () => { await it(...) } changes the usual node:test pattern (register tests synchronously) and can subtly affect execution/ordering because it() is being treated as an awaitable. Once no-floating-promises is adjusted (e.g. via the ESLint safe-call allowlist), prefer keeping describe synchronous and calling it(...) without await (or using the conventional registration pattern) throughout this file.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread package.json Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread eslint.config.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

mbg added 9 commits March 12, 2026 22:39
@mbg
Add workspaces to root package.json
b5e1fb0
@mbg
Add minimal Step type
7df3db2
@mbg
Add eslint configuration for pr-checks
e608db4
@mbg
Fix linter errors in sync.ts
7950e47
@mbg
Rename sync_back to sync-back
967ca85
@mbg
Fix linter errors in sync-back.ts
b171c1c
@mbg
Fix linter errors in sync-back.test.ts
b4cb104
@mbg
Add explicit cache dependency paths in pr-checks.yml
3bc3228
@mbg
Add step (in root directory) to install dependencies
fc8d303
@mbg
mbg force-pushed the mbg/pr-checks/eslint branch from 4b1f21e to fc8d303 Compare March 12, 2026 22:39
redsun82
redsun82 previously approved these changes Mar 13, 2026
View reviewed changes
@mbg
Remove package-lock.json that's no longer needed
a5aba59
Since `pr-checks` is now a workspace of the main `package.json`
@github-actions github-actions Bot added the size/XL May be very hard to review label Mar 13, 2026
@github-actions github-actions Bot removed the size/M Should be of average difficulty to review label Mar 13, 2026
@mbg
Remove cache-dependency-path options as well
136b8ab
Base automatically changed from mbg/esbuild/no-package-json to main March 13, 2026 11:02
@mbg
mbg dismissed redsun82’s stale review March 13, 2026 11:02

The base branch was changed.

@mbg
mbg requested a review from redsun82 March 13, 2026 11:08
redsun82
redsun82 approved these changes Mar 13, 2026
View reviewed changes
@mbg
mbg added this pull request to the merge queue Mar 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2026

Uh oh!

There was an error while loading. Please reload this page.

@mbg
mbg added this pull request to the merge queue Mar 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2026

Uh oh!

There was an error while loading. Please reload this page.

@mbg
mbg added this pull request to the merge queue Mar 13, 2026
Merged via the queue into main with commit 7dd76e6 Mar 13, 2026
234 of 235 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@mbg
mbg deleted the mbg/pr-checks/eslint branch March 13, 2026 19:10
This was referenced Mar 16, 2026
Merge main into releases/v4 #3574
Merged
Merge releases/v4 into releases/v3 #3577
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@redsun82 redsun82 redsun82 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@mbg mbg

Labels

size/XL May be very hard to review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@mbg @redsun82
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.