Skip to content

Commit

Permalink
Merge branch 'main' into feat/lastapproval
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon authored Dec 12, 2022
2 parents 505f25b + 6107786 commit 4b9bdbc
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clients/githubrepo/branches.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func (handler *branchesHandler) init(ctx context.Context, repourl *repoURL) {
handler.repourl = repourl
handler.errSetup = nil
handler.once = new(sync.Once)
handler.defaultBranchRef = nil
handler.data = nil
}

func (handler *branchesHandler) setup() error {
Expand Down
1 change: 1 addition & 0 deletions clients/githubrepo/contributors.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func (handler *contributorsHandler) init(ctx context.Context, repourl *repoURL)
handler.repourl = repourl
handler.errSetup = nil
handler.once = new(sync.Once)
handler.contributors = nil
}

func (handler *contributorsHandler) setup() error {
Expand Down
2 changes: 2 additions & 0 deletions clients/githubrepo/graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ func (handler *graphqlHandler) init(ctx context.Context, repourl *repoURL, commi
handler.checkRuns = checkRunCache{}
handler.logger = log.NewLogger(log.DefaultLevel)
handler.commitDepth = commitDepth
handler.commits = nil
handler.issues = nil
}

func populateCommits(handler *graphqlHandler, vars map[string]interface{}) ([]clients.Commit, error) {
Expand Down
1 change: 1 addition & 0 deletions clients/githubrepo/languages.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func (handler *languagesHandler) init(ctx context.Context, repourl *repoURL) {
handler.repourl = repourl
handler.errSetup = nil
handler.once = new(sync.Once)
handler.languages = nil
}

// TODO: Can add support to parse the raw response JSON and mark languages that are not in
Expand Down
1 change: 1 addition & 0 deletions clients/githubrepo/licenses.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func (handler *licensesHandler) init(ctx context.Context, repourl *repoURL) {
handler.repourl = repourl
handler.errSetup = nil
handler.once = new(sync.Once)
handler.licenses = nil
}

// TODO: Can add support to parse the raw response JSON and mark licenses that are not in
Expand Down
1 change: 1 addition & 0 deletions clients/githubrepo/releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func (handler *releasesHandler) init(ctx context.Context, repourl *repoURL) {
handler.repourl = repourl
handler.errSetup = nil
handler.once = new(sync.Once)
handler.releases = nil
}

func (handler *releasesHandler) setup() error {
Expand Down
1 change: 1 addition & 0 deletions clients/githubrepo/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func (handler *webhookHandler) init(ctx context.Context, repourl *repoURL) {
handler.repourl = repourl
handler.errSetup = nil
handler.once = new(sync.Once)
handler.webhook = nil
}

func (handler *webhookHandler) setup() error {
Expand Down
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func rootCmd(o *options.Options) error {
if err != nil {
return fmt.Errorf("RunScorecard: %w", err)
}

repoResult.Metadata = append(repoResult.Metadata, o.Metadata...)

// Sort them by name
Expand Down

0 comments on commit 4b9bdbc

Please sign in to comment.