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

Fix require-approval for Bitbucket Cloud. #657

Merged
merged 1 commit into from
Jun 3, 2019
Merged

Fix require-approval for Bitbucket Cloud. #657

merged 1 commit into from
Jun 3, 2019

Conversation

lkysow
Copy link
Member

@lkysow lkysow commented Jun 3, 2019

Bitbucket Cloud changed their APIs to deprecate the username fields.
This broke how we were checking for approvals. Rather than propagate the
UUID field through the PullRequest model, I use the pull request API
response directly while checking approvers.

Fixes #652

Bitbucket Cloud changed their APIs to deprecate the username fields.
This broke how we were checking for approvals. Rather than propagate the
UUID field through the PullRequest model, I use the pull request API
response directly while checking approvers.
@codecov
Copy link

codecov bot commented Jun 3, 2019

Codecov Report

Merging #657 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #657      +/-   ##
=========================================
+ Coverage   72.19%   72.2%   +<.01%     
=========================================
  Files          61      61              
  Lines        4643    4644       +1     
=========================================
+ Hits         3352    3353       +1     
  Misses       1045    1045              
  Partials      246     246
Impacted Files Coverage Δ
server/events/vcs/bitbucketcloud/client.go 40% <100%> (+0.48%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 354551d...8f81568. Read the comment docs.

@lkysow lkysow merged commit dd64fcd into master Jun 3, 2019
@lkysow lkysow deleted the bbcloud-gdpr branch June 3, 2019 14:23
@@ -51,6 +51,7 @@ type PullRequest struct {
Participants []Participant `json:"participants,omitempty" validate:"required"`
Links *Links `json:"links,omitempty" validate:"required"`
State *string `json:"state,omitempty" validate:"required"`
Author *Author `jsonN:"author,omitempty" validate:"required"`
Copy link
Contributor

Choose a reason for hiding this comment

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

@lkysow This jasoN looks strange. However, I am not sure if this will make a problem here.

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.

Bitbucket: PANIC: runtime error: invalid memory address or nil pointer dereference
2 participants