-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP attempt at using the FS beforehand the API for github #991
base: main
Are you sure you want to change the base?
Conversation
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.
What's the "purpose" of this change? Is it just a flakiness/performance optimization? or is it something more?
No objections conceptually, so once it's green I'm happy to re-review for you!
|
||
exec(call, (err, stdout, _stderr) => { | ||
if (err) { | ||
console.error(`Could not get the git HEAD for the current path]`) |
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.
console.error(`Could not get the git HEAD for the current path]`) | |
console.error(`Could not get the git HEAD for the current path`) |
|
||
export const localGetHeadSHA = () => | ||
new Promise<string>(done => { | ||
const call = `git rev-parse HEAD"` |
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.
const call = `git rev-parse HEAD"` | |
const call = `git rev-parse HEAD` |
This typo looks like it might be the first level of why the PR was red 🟥
// expect(rangesOfDifferBetweenTwoStrings(src, target)).toMatchInlineSnapshot(` | ||
// Array [ | ||
// Object { | ||
// "length": 1, | ||
// "start": 6, | ||
// }, | ||
// ] | ||
// `) | ||
|
||
// const multilineInput = ` | ||
// ↓ | ||
// (↓ | ||
// ····<div>↓ | ||
// ······text↓ | ||
// ····</div>↓ | ||
// ) | ||
// ` | ||
// const multilineOutput = ` | ||
// ↓ | ||
// (↓ | ||
// ····<div>↓ | ||
// ········text↓ | ||
// ······</div>↓ | ||
// )` | ||
// expect(rangesOfDifferBetweenTwoStrings(multilineInput, multilineOutput)).toMatchInlineSnapshot(` | ||
// Array [ | ||
// Object { | ||
// "length": 8, | ||
// "start": 22, | ||
// }, | ||
// Object { | ||
// "length": 10, | ||
// "start": 32, | ||
// }, | ||
// ] | ||
// `) |
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.
// expect(rangesOfDifferBetweenTwoStrings(src, target)).toMatchInlineSnapshot(` | |
// Array [ | |
// Object { | |
// "length": 1, | |
// "start": 6, | |
// }, | |
// ] | |
// `) | |
// const multilineInput = ` | |
// ↓ | |
// (↓ | |
// ····<div>↓ | |
// ······text↓ | |
// ····</div>↓ | |
// ) | |
// ` | |
// const multilineOutput = ` | |
// ↓ | |
// (↓ | |
// ····<div>↓ | |
// ········text↓ | |
// ······</div>↓ | |
// )` | |
// expect(rangesOfDifferBetweenTwoStrings(multilineInput, multilineOutput)).toMatchInlineSnapshot(` | |
// Array [ | |
// Object { | |
// "length": 8, | |
// "start": 22, | |
// }, | |
// Object { | |
// "length": 10, | |
// "start": 32, | |
// }, | |
// ] | |
// `) |
Not sure if this was a copy-pasted test file, or if you actually want these tests to work?
Perf, people check huge amounts of files and that can hit the GH API limits |
PR Suggestions for #991
Can you finish this, please? |
|
It's OSS people, feel free to take over the PR instead of asking for folks to do volunteer work for you 👍🏻 |
I don't have time to make it green, but maybe this could work