Skip to content

Commit

Permalink
multi-repo-action: Disable incomplete tests
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Augustus <foo@auggie.dev>
  • Loading branch information
justaugustus committed May 24, 2022
1 parent 0072df3 commit bb52c12
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions multi-repo-action/main_test.go
Expand Up @@ -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(), "")
Expand Down Expand Up @@ -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
}
*/

0 comments on commit bb52c12

Please sign in to comment.