-
Notifications
You must be signed in to change notification settings - Fork 21
chore(ci): skip spreading if there is no change #353
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
Changes from 6 commits
ca110b6
25fc8cb
c45b7ea
3d4374d
c6dc6e1
cc58d05
cb3297f
fea423a
b73db92
79f2672
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,17 +7,22 @@ import { run } from '../common'; | |
export async function getNbGitDiff({ | ||
branch, | ||
head = 'HEAD', | ||
path, | ||
}: { | ||
path = '.', | ||
cwd, | ||
}: Partial<{ | ||
branch: string; | ||
head?: string | null; | ||
head: string | null; | ||
path: string; | ||
}): Promise<number> { | ||
cwd: string; | ||
}>): Promise<number> { | ||
const checkHead = head === null ? '' : `...${head}`; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One more thing, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does intentionally providing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't remember 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah no you're right I got confused There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah oki no problem |
||
|
||
return parseInt( | ||
( | ||
await run(`git diff --shortstat ${branch}${checkHead} -- ${path} | wc -l`) | ||
await run( | ||
`git diff --shortstat ${branch}${checkHead} -- ${path} | wc -l`, | ||
{ cwd } | ||
) | ||
).trim(), | ||
10 | ||
); | ||
|
Uh oh!
There was an error while loading. Please reload this page.