FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Refactor/clean-up diff-informed utils by mbg · Pull Request #4300 · github/codeql-action · GitHub

Repository navigation

Refactor/clean-up diff-informed utils - #4300

Open
mbg wants to merge 5 commits into
mainfrom
mbg/clean-up-diff-informed-utils
Open

mbg wants to merge 5 commits into
mainfrom
mbg/clean-up-diff-informed-utils

Conversation

mbg commented Nov 4, 2026

Copy link
Copy Markdown
Member

This PR refactors diff-informed analysis utilities into a new diff-informed subfolder, improves the JSDocs for the functions, and makes the file path an explicit argument rather than implicitly computed value based on an environment variable so that tests don't have to rely on global state manipulation going forward.

mbg requested a review from a team as a code owner November 4, 2026 16:12
Copilot AI dynamic review requested due to automatic review settings November 4, 2026 16:12
github-actions Bot added the size/M Should be of average difficulty to review label Nov 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

🔵 Needs a closer look

The lockfile still resolves glob to 13.0.6 despite the workspace requiring ^14.0.3, leaving a dependency mismatch that may cause npm ci to fail.

No open issues 🎉

What changed in this PR

This PR consolidates diff-informed analysis utilities into a dedicated module and makes persisted diff-range paths explicit, enabling tests to rely less on global environment state.

Changes:

  • Moves utilities into src/diff-informed and expands their JSDocs.
  • Updates callers and tests for explicit file-path arguments.
  • Refreshes the generated JavaScript bundle and updates the workspace’s glob requirement metadata.
File Description
src/​upload-lib.ts Passes an explicit path when reading diff ranges.
src/​upload-lib.test.ts Updates imports and stubs the path helper.
src/​overlay/​index.ts Uses the relocated path helper.
src/​overlay/​index.test.ts Updates path-helper stubs.
src/​diff-informed/​index.ts Consolidates utilities, adds path parameters, and improves JSDocs.
src/​diff-informed/​index.test.ts Relocates tests and updates function arguments.
src/​config-utils.ts Computes the diff-range path from action state.
src/​config-utils.test.ts Configures temporary paths through test environments.
src/​analyze.ts Uses the new module and explicit read path.
src/​actions-util.ts Removes the relocated path helper.
package-lock.json Updates workspace glob requirement metadata.
lib/​entry-points.js Generated bundle reflecting the TypeScript refactor.

Review effort: Balanced (auto)

Base automatically changed from mbg/decouple-features-enum to main November 4, 2026 16:29
henrymercer requested a max review from Copilot November 5, 2026 15:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

🟡 Changes recommended

The test setup leaves hosted-runner detection dependent on the real CI environment, which can unexpectedly enable TRAP caching and break assertions expecting zero download time.

1 open issue

Review effort: Max

Comment thread src/config-utils.test.ts
const languages = "javascript,python";

setupActionsVars(tempDir, tempDir);
setupActionsVars(tempDir, tempDir, {}, state.env);

This branch has not been deployed

No deployments
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

Labels

size/M Should be of average difficulty to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL