Skip to content

Commit

Permalink
fix: output labels in log (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored May 16, 2019
1 parent 2ea56f3 commit ad73b2d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ export class GitHub {
title: string, body: string, labels: string[],
issue?: IssuesListResponseItem) {
if (issue) {
checkpoint(`updating issue #${issue.number}`, CheckpointType.Success);
checkpoint(
`updating issue #${issue.number} with labels = ${
JSON.stringify(labels)}`,
CheckpointType.Success);
this.octokit.issues.update({
owner: this.owner,
repo: this.repo,
Expand All @@ -174,7 +177,10 @@ export class GitHub {
labels
});
} else {
checkpoint(`creating new release proposal issue`, CheckpointType.Success);
checkpoint(
`creating new release proposal issue with labels = ${
JSON.stringify(labels)}`,
CheckpointType.Success);
this.octokit.issues.create(
{owner: this.owner, repo: this.repo, title, body, labels});
}
Expand Down

0 comments on commit ad73b2d

Please sign in to comment.