From bb52c121345cafa58b5778f53cf63bb16a9d8632 Mon Sep 17 00:00:00 2001 From: Stephen Augustus Date: Tue, 24 May 2022 17:40:19 -0400 Subject: [PATCH] multi-repo-action: Disable incomplete tests Signed-off-by: Stephen Augustus --- multi-repo-action/main_test.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/multi-repo-action/main_test.go b/multi-repo-action/main_test.go index f4c17d86..36f4bdd8 100644 --- a/multi-repo-action/main_test.go +++ b/multi-repo-action/main_test.go @@ -19,19 +19,18 @@ package main import ( - "context" - "fmt" - "net/http" - "testing" - "github.com/google/go-github/v42/github" ) var client *github.Client // Currently incomplete +//nolint:lll // Good reference: https://github.com/google/go-github/blob/887f605dd1f81715a4d4e3983e38450b29833639/github/repos_contents_test.go // Currently from: https://github.com/google/go-github/blob/master/test/integration/repos_test.go + +// TODO: Add/refactor tests +/* func Test_OrgWorkflowAdd(t *testing.T) { client = github.NewClient(nil) me, _, err := client.Users.Get(context.Background(), "") @@ -85,10 +84,18 @@ func createRandomTestRepository(owner string, autoinit bool) (*github.Repository } // create the repository - repo, _, err := client.Repositories.Create(context.Background(), "", &github.Repository{Name: github.String(repoName), AutoInit: github.Bool(autoinit)}) + repo, _, err := client.Repositories.Create( + context.Background(), + "", + &github.Repository{ + Name: github.String(repoName), + AutoInit: github.Bool(autoinit), + }, + ) if err != nil { return nil, err } return repo, nil } +*/