Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
212 changes: 72 additions & 140 deletions .golangci.yml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions github/enterprise_codesecurity_configurations.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ import (
// per page (max 100 per GitHub API docs).
type ListEnterpriseCodeSecurityConfigurationOptions struct {
// A cursor, as given in the Link header. If specified, the query only searches for security configurations before this cursor.
Before *string `url:"before,omitempty"`
Before string `url:"before,omitempty"`

// A cursor, as given in the Link header. If specified, the query only searches for security configurations after this cursor.
After *string `url:"after,omitempty"`
After string `url:"after,omitempty"`

// For paginated result sets, the number of results to include per page.
PerPage *int `url:"per_page,omitempty"`
PerPage int `url:"per_page,omitempty"`
}

// ListCodeSecurityConfigurations lists all code security configurations available in an enterprise.
Expand Down
4 changes: 2 additions & 2 deletions github/enterprise_codesecurity_configurations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

func TestEnterpriseService_ListCodeSecurityConfigurations(t *testing.T) {
t.Parallel()
opts := &ListEnterpriseCodeSecurityConfigurationOptions{Before: Ptr("1"), After: Ptr("2"), PerPage: Ptr(30)}
opts := &ListEnterpriseCodeSecurityConfigurationOptions{Before: "1", After: "2", PerPage: 30}
ctx := t.Context()
client, mux, _ := setup(t)

Expand Down Expand Up @@ -391,7 +391,7 @@ func TestEnterpriseService_SetDefaultCodeSecurityConfiguration(t *testing.T) {

func TestEnterpriseService_ListCodeSecurityConfigurationRepositories(t *testing.T) {
t.Parallel()
opts := &ListCodeSecurityConfigurationRepositoriesOptions{Before: Ptr("1"), After: Ptr("2"), PerPage: Ptr(30), Status: Ptr("attached")}
opts := &ListCodeSecurityConfigurationRepositoriesOptions{Before: "1", After: "2", PerPage: 30, Status: "attached"}
ctx := t.Context()
client, mux, _ := setup(t)

Expand Down
2 changes: 1 addition & 1 deletion github/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func ExampleUsersService_ListAll() {
if len(users) == 0 {
break
}
opts.Since = users[len(users)-1].ID
opts.Since = users[len(users)-1].GetID()
// Process users...
}
}
Expand Down
136 changes: 0 additions & 136 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading