-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Required signatures on protected branches #1039
Changes from 3 commits
dfdbc92
c5c33fc
00f96c6
302d642
ae38ea7
d697b01
b521515
9d0cbac
6b75719
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1066,13 +1066,13 @@ func TestRepositoriesService_GetSignaturesProtectedBranch(t *testing.T) { | |
}) | ||
|
||
signature, _, err := client.Repositories.GetSignaturesProtectedBranch(context.Background(), "o", "r", "b") | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please delete this blank line, as we attempt to keep the error checking code tightly bound to the section of code that created it. |
||
if err != nil { | ||
t.Errorf("Repositories.GetSignaturesProtectedBranch returned error: %v", err) | ||
} | ||
|
||
want := &SignaturesProtectedBranch{ | ||
URL: String("/repos/o/r/branches/b/protection/required_signatures"), | ||
Enabled: false, | ||
URL: String("/repos/o/r/branches/b/protection/required_signatures"), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add back your |
||
} | ||
|
||
if !reflect.DeepEqual(signature, want) { | ||
|
@@ -1096,9 +1096,9 @@ func TestRepositoriesService_AddSignatureProtectedBranch(t *testing.T) { | |
} | ||
|
||
want := &SignaturesProtectedBranch{ | ||
URL: String("/repos/o/r/branches/b/protection/required_signatures"), | ||
Enabled: false, | ||
URL: String("/repos/o/r/branches/b/protection/required_signatures"), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add back your |
||
} | ||
|
||
if !reflect.DeepEqual(signature, want) { | ||
t.Errorf("Repositories.RequireSignaturesOnProtectedBranch returned %+v, want %+v", signature, want) | ||
} | ||
|
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.
s/strict/enabled/