-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Commit checks from forks are now included #72
base: main
Are you sure you want to change the base?
Conversation
I'd have preferred to reuse #62; let's now keep both open so they can be kept in sync. |
return response.repository.commit?.statusCheckRollup?.contexts?.nodes; | ||
} catch (error) { | ||
console.log(error); | ||
return null; | ||
} |
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.
return response.repository.commit?.statusCheckRollup?.contexts?.nodes; | |
} catch (error) { | |
console.log(error); | |
return null; | |
} | |
} catch (error) { | |
console.log(error); | |
return null; | |
} | |
return response.repository.commit?.statusCheckRollup?.contexts?.nodes; |
const node = JSON.parse(JSON.stringify(ogNode)); | ||
// console.log(JSON.stringify(node,undefined,2)); |
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.
rather than cloning here, maybe we could { ...ogNode, commit: { ...ogNode.commit, ...newCommit } }
?
const command = short ? `git show ${identifier} -s --format="%h"` : `git show ${identifier} -s --format="%H"`; | ||
const stdout = String(exec(command)); | ||
return stdout; |
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 command = short ? `git show ${identifier} -s --format="%h"` : `git show ${identifier} -s --format="%H"`; | |
const stdout = String(exec(command)); | |
return stdout; | |
const command = `git show ${identifier} -s --format="%${short ? 'h' : 'H'}"`; | |
return String(exec(command)); |
Fixes #52