Skip to content

Commit

Permalink
Show negative results to Pull-Requests details
Browse files Browse the repository at this point in the history
Negative results logged with a "!!" prefix.

Updates #95

$ go run . --repo=github.com/ossf/scorecard --show-details --checks=Pull-Requests
Starting [Pull-Requests]
Finished [Pull-Requests]

RESULTS
-------
Pull-Requests: Pass 9
    !! found commit without PR: 71dace5, committer: dlorenc
    found PRs for 29 out of 30 commits
  • Loading branch information
moorereason committed Dec 20, 2020
1 parent 1991617 commit 4ec34e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions checks/pull_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ func PullRequests(c checker.Checker) checker.CheckResult {
}
if len(prs) > 0 {
totalWithPrs++
} else {
c.Logf("!! found commit without PR: %s, committer: %s", commit.GetSHA(), commit.GetCommitter().GetLogin())
}
}
c.Logf("found PRs for %d out of %d commits", totalWithPrs, total)
Expand Down

0 comments on commit 4ec34e9

Please sign in to comment.