Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Fix printf format problems
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Dec 3, 2019
1 parent 19d4dc6 commit 38750bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal_docs/generate_changelog_entry/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ func main() {

fromSHA1, _, err := client.Repositories.GetCommitSHA1(ctx, gitHubOrg, gitHubRepo, *from, "")
if err != nil {
log.Fatalf("cannot obtain SHA1 of %q: %s", from)
log.Fatalf("cannot obtain SHA1 of %q: %s", *from, err)
}
toSHA1, _, err := client.Repositories.GetCommitSHA1(ctx, gitHubOrg, gitHubRepo, to, "")
if err != nil {
log.Fatalf("cannot obtain SHA1 of %q: %s", from)
log.Fatalf("cannot obtain SHA1 of %q: %s", to, err)
}

// Make sure that the "from" revision is behing "to" and obtain the number of commits, for the progess bar
comparison, _, err := client.Repositories.CompareCommits(ctx, gitHubOrg, gitHubRepo, toSHA1, fromSHA1)
if err != nil {
log.Fatalf("cannot compare commits from %q and to %q: %s", from, to, err)
log.Fatalf("cannot compare commits from %q and to %q: %s", *from, to, err)
}
if comparison.GetStatus() != "behind" {
log.Fatalf("'from' revision (%s) is not behind 'to' revision (%s)", *from, to)
Expand Down

0 comments on commit 38750bb

Please sign in to comment.