Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Aug 10, 2022
1 parent 99cc937 commit f435b4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions checks/raw/contributors.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func Contributors(c clients.RepoClient) (checker.ContributorsData, error) {
}

for _, org := range contrib.Organizations {
fmt.Println(user.Login, ":", user.Organizations)
if org.Login != "" && !orgContains(user.Organizations, org.Login) {
user.Organizations = append(user.Organizations, org)
}
Expand All @@ -53,6 +54,7 @@ func Contributors(c clients.RepoClient) (checker.ContributorsData, error) {
company = strings.ReplaceAll(company, ",", "")
company = strings.TrimLeft(company, "@")
company = strings.Trim(company, " ")
fmt.Println(user.Login, ":", user.Companies)
if company != "" && !companyContains(user.Companies, company) {
user.Companies = append(user.Companies, company)
}
Expand Down
2 changes: 1 addition & 1 deletion checks/signed_releases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestSignedRelease(t *testing.T) {
TargetCommitish: "master",
Assets: []clients.ReleaseAsset{
{
Name: "foo.asc",
Name: "foo.intoto.jsonl",
URL: "http://foo.com/v1.0.0/foo.intoto.jsonl",
},
},
Expand Down

0 comments on commit f435b4c

Please sign in to comment.