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 — getPullRequestEditedDiffRanges: use GitHub API by cklin · Pull Request #2679 · github/codeql-action

Conversation

@cklin

@cklin cklin commented Jan 9, 2025

Copy link
Copy Markdown
Contributor

This PR changes getPullRequestEditedDiffRanges so that it no longer obtains the PR diff through Git. Instead, it now obtains the PR diff through the GitHub Compare two commits API.

Sorry, something went wrong.

Uh oh!

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

All reactions
github-advanced-security[bot]
github-advanced-security AI found potential problems Jan 9, 2025
View reviewed changes
Comment thread src/analyze.ts Fixed

Uh oh!

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

@cklin
cklin force-pushed the cklin/get-diff-from-api branch from 59dd206 to 8fcc2ef Compare January 9, 2025 22:39
@cklin
cklin marked this pull request as ready for review January 9, 2025 22:54
@cklin
cklin requested a review from a team as a code owner January 9, 2025 22:54
@cklin
cklin requested a review from henrymercer January 9, 2025 22:54
@cklin
cklin force-pushed the cklin/get-diff-from-api branch 5 times, most recently from 2f17622 to 2f35487 Compare January 10, 2025 21:59
henrymercer
henrymercer previously approved these changes Jan 13, 2025
View reviewed changes

@henrymercer henrymercer 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.

Thanks, a bunch of comments, but nothing major.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread src/analyze.ts Resolved

Uh oh!

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

Comment thread src/analyze.ts Resolved

Uh oh!

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

Comment thread src/analyze.ts Resolved

Uh oh!

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

Comment thread src/analyze.ts Resolved

Uh oh!

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

Comment thread src/analyze.ts Resolved

Uh oh!

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

Comment thread src/analyze.ts Resolved

Uh oh!

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

@cklin
getPullRequestEditedDiffRanges: use GitHub API
68378a3
@cklin
cklin dismissed henrymercer’s stale review via 82ea58e January 13, 2025 19:47
@cklin
cklin force-pushed the cklin/get-diff-from-api branch from 2f35487 to 82ea58e Compare January 13, 2025 19:47
cklin added 7 commits January 13, 2025 14:28
@cklin
getPullRequestEditedDiffRanges: compute diff ranges
68b1b4e
@cklin
getPullRequestEditedDiffRanges: check the number of changed files
63d1f4f
@cklin
getDiffRanges: improve handling for missing patch
d4c56bb
@cklin
getDiffRanges: add unit tests
7848967
@cklin
setupDiffInformedQueryRun: log setup failure
52315a9
@cklin
writeDiffRangeDataExtensionPack: escape special characters in filenames
3548ff5
@cklin
build: refresh js files
ae19466
@cklin
cklin force-pushed the cklin/get-diff-from-api branch from 82ea58e to ae19466 Compare January 13, 2025 22:29
@cklin

cklin commented Jan 13, 2025

Copy link
Copy Markdown
Contributor Author

@henrymercer I have addressed all comments; PTAL.

I want to thank you especially for suggesting that I add tests, because one of those tests caught a bug (incorrect path separator on Windows). I have fixed the bug in the latest force push.

henrymercer reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

@cklin
cklin requested a review from henrymercer January 13, 2025 22:47
henrymercer
henrymercer approved these changes Jan 14, 2025
View reviewed changes
Comment thread src/analyze.ts
Comment on lines +768 to +770
export const exportedForTesting = {
getDiffRanges,
};

@henrymercer henrymercer Jan 14, 2025

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.

I like this pattern, we should use it more in the rest of the Action :)

Sorry, something went wrong.

Uh oh!

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

angelapwen reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@github github deleted a comment from BLOCkCHAINMASTERINC Jan 14, 2025
@cklin
cklin merged commit 1efc6bb into main Jan 14, 2025
@cklin
cklin deleted the cklin/get-diff-from-api branch January 14, 2025 15:11
@github-actions github-actions Bot mentioned this pull request Jan 21, 2025
Merge main into releases/v3 #2708
Merged
5 of 8 tasks
@coderabbitai coderabbitai Bot mentioned this pull request Mar 28, 2026
fix: resolve 3 workflow bugs found during integration testing Tony363/SuperClaude#93
Merged
1 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@henrymercer henrymercer henrymercer approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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

@cklin @henrymercer @github-advanced-security
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.