From ad73b2d257054c239a8a21555aee760f2ae5fec2 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Thu, 16 May 2019 14:21:53 -0700 Subject: [PATCH] fix: output labels in log (#108) --- src/github.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/github.ts b/src/github.ts index e6d171856..9f65eede0 100644 --- a/src/github.ts +++ b/src/github.ts @@ -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, @@ -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}); }