Browse Source

gofmt -s

fixes #274
Shawn Smith 10 years ago
committed by Will Norris
parent
commit
05bd5edbd5
3 changed files with 7 additions and 7 deletions
  1. +2
    -2
      github/repos.go
  2. +3
    -3
      tests/integration/github_test.go
  3. +2
    -2
      tests/integration/repos_test.go

+ 2
- 2
github/repos.go View File

@ -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.


+ 3
- 3
tests/integration/github_test.go View File

@ -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
}


+ 2
- 2
tests/integration/repos_test.go View File

@ -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 {


Loading…
Cancel
Save