Skip to content

Commit

Permalink
fix print being unaware of forks
Browse files Browse the repository at this point in the history
Without configuring platform run options. Not all repos are downloaded due to conditions.
  • Loading branch information
jetersen committed Jul 30, 2022
1 parent eb15db4 commit f1b6402
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions cmd/cmd-print.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func PrintCmd() *cobra.Command {
cmd.Flags().StringP("error-output", "E", "-", `The file that the output of the script should be outputted to. "-" means stderr.`)
configureGit(cmd)
configurePlatform(cmd)
configureRunPlatform(cmd, true)
configureLogging(cmd, "")
configureConfig(cmd)
cmd.Flags().AddFlagSet(outputFlag())
Expand Down
8 changes: 4 additions & 4 deletions internal/scm/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func Test_GetRepositories(t *testing.T) {
{
gh, err := github.New("", "", transport.Wrapper, github.RepositoryListing{
Organizations: []string{"test-org"},
}, []scm.MergeType{scm.MergeTypeMerge}, false, "", false)
}, []scm.MergeType{scm.MergeTypeMerge}, false, "", false, false)
require.NoError(t, err)

repos, err := gh.GetRepositories(context.Background())
Expand All @@ -137,7 +137,7 @@ func Test_GetRepositories(t *testing.T) {
Name: "test1",
},
},
}, []scm.MergeType{scm.MergeTypeMerge}, false, "", false)
}, []scm.MergeType{scm.MergeTypeMerge}, false, "", false, false)
require.NoError(t, err)

repos, err := gh.GetRepositories(context.Background())
Expand All @@ -152,7 +152,7 @@ func Test_GetRepositories(t *testing.T) {
{
gh, err := github.New("", "", transport.Wrapper, github.RepositoryListing{
Users: []string{"test-user"},
}, []scm.MergeType{scm.MergeTypeMerge}, false, "", false)
}, []scm.MergeType{scm.MergeTypeMerge}, false, "", false, false)
require.NoError(t, err)

repos, err := gh.GetRepositories(context.Background())
Expand All @@ -174,7 +174,7 @@ func Test_GetRepositories(t *testing.T) {
Name: "test1",
},
},
}, []scm.MergeType{scm.MergeTypeMerge}, false, "", false)
}, []scm.MergeType{scm.MergeTypeMerge}, false, "", false, false)
require.NoError(t, err)

repos, err := gh.GetRepositories(context.Background())
Expand Down

0 comments on commit f1b6402

Please sign in to comment.