Skip to content

Commit

Permalink
Add comment for bitbucket merge conflict detection
Browse files Browse the repository at this point in the history
  • Loading branch information
lkysow committed Jun 12, 2019
1 parent 5717de5 commit 91eecbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/events/vcs/bitbucketcloud/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func (b *Client) PullIsMergeable(repo models.Repo, pull models.PullRequest) (boo
return false, errors.Wrapf(err, "API response %q was missing fields", string(resp))
}
for _, v := range diffStat.Values {
// These values are undocumented, found via manual testing.
if *v.Status == "merge conflict" || *v.Status == "local deleted" {
return false, nil
}
Expand Down

0 comments on commit 91eecbc

Please sign in to comment.