diff --git a/github/repos.go b/github/repos.go index 0f8353f..365520b 100644 --- a/github/repos.go +++ b/github/repos.go @@ -466,9 +466,9 @@ type RequiredStatusChecks struct { // off // non_admins // everyone - EnforcementLevel *string `json:"enforcement_level,omitempty"` + EnforcementLevel *string `json:"enforcement_level,omitempty"` // The list of status checks which are required - Contexts *[]string `json:"contexts,omitempty"` + Contexts *[]string `json:"contexts,omitempty"` } // ListBranches lists branches for the specified repository. diff --git a/tests/integration/github_test.go b/tests/integration/github_test.go index 4a10db7..9e83de9 100644 --- a/tests/integration/github_test.go +++ b/tests/integration/github_test.go @@ -11,12 +11,12 @@ package tests import ( "fmt" + "math/rand" + "net/http" "os" "github.com/google/go-github/github" "golang.org/x/oauth2" - "net/http" - "math/rand" ) var ( @@ -65,7 +65,7 @@ func createRandomTestRepository(owner string, autoinit bool) (*github.Repository } // create the repository - repo, _, err := client.Repositories.Create("", &github.Repository{Name: github.String(repoName), AutoInit:github.Bool(autoinit)}) + repo, _, err := client.Repositories.Create("", &github.Repository{Name: github.String(repoName), AutoInit: github.Bool(autoinit)}) if err != nil { return nil, err } diff --git a/tests/integration/repos_test.go b/tests/integration/repos_test.go index 13a34c4..172ca89 100644 --- a/tests/integration/repos_test.go +++ b/tests/integration/repos_test.go @@ -118,8 +118,8 @@ func TestRepositories_EditBranches(t *testing.T) { branch.Protection.Enabled = github.Bool(true) branch.Protection.RequiredStatusChecks = &github.RequiredStatusChecks{ - EnforcementLevel:github.String("everyone"), - Contexts:&[]string{"continous-integration"}, + EnforcementLevel: github.String("everyone"), + Contexts: &[]string{"continous-integration"}, } branch, _, err = client.Repositories.EditBranch(*repo.Owner.Login, *repo.Name, "master", branch) if err != nil {