Skip to content
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

add helper function to get changed files #527

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joshrwolf
Copy link
Contributor

@joshrwolf joshrwolf commented Sep 3, 2024

a helper function that uses the *git.Repository struct for getting a set of changed files between the tips of two branches.

this intentionally doesn't use the GH client to preserve our precious api quota

@wiz-inc-643c6df573
Copy link

Wiz Scan Summary

Scan Module Critical High Medium Low Info Total
IaC Misconfigurations 0 0 0 0 0 0
Vulnerabilities 1 1 0 0 0 2
Secrets 0 0 0 0 0 0
Total 1 1 0 0 0 2

View scan details in Wiz

@joshrwolf joshrwolf force-pushed the sdk/changed-files branch 2 times, most recently from 298e020 to ddeabca Compare September 17, 2024 13:45
}

if fromCommit == nil || toCommit == nil {
return nil, fmt.Errorf("one or both commits are nil")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: include the fromCommit and toCommit in the error message so its clear which one is nil or not

Copy link
Contributor

@k4leung4 k4leung4 left a comment

Choose a reason for hiding this comment

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

one minor comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants