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 git diff stat to resolve issue 142 #145

Merged
merged 4 commits into from
Jul 5, 2021

Conversation

DataDavD
Copy link
Contributor

@DataDavD DataDavD commented Jul 4, 2021

This PR creates the GetDiffStat function as well as its corresponding test.

The new function currently just returns the DiffStatRes object that includes the DiffStats object which is a slice of DiffStat's. The DiffStats are the "values" returned by the Bitbucket 2.0 API.

@ktrysmt my tests pass successfully, but for some reason I couldn't get the Docker/Swagger tests to pass; it kept saying the Bitbucket env variables were empty. If this is resolved I can rerun this part of the test.

FYI: in I had to tweak the TestCreateBranchRestrictionsKindPush and TestCreateBranchRestrictionsKindRequirePassingBuilds tests in order to get the test suite build to run the diff tests. The tweaks I made will be in another PR that I will submit soon.

Thank you for letting me contribute to this wonderful go package. I hope to contribute even more!!!!

Copy link
Owner

@ktrysmt ktrysmt left a comment

Choose a reason for hiding this comment

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

Thank you for adding a test code.
LGTM!

@ktrysmt ktrysmt merged commit 4130b29 into ktrysmt:master Jul 5, 2021
@ktrysmt ktrysmt mentioned this pull request Jul 5, 2021
@DataDavD DataDavD changed the title Add git diff to resolve issue 142 Add git diff stat to resolve issue 142 Jul 5, 2021
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