diff --git a/changelog.d/955.bugfix b/changelog.d/955.bugfix new file mode 100644 index 000000000..dd208ddbd --- /dev/null +++ b/changelog.d/955.bugfix @@ -0,0 +1 @@ +Fix list of labels in notice's body for GitHub opened PR webhook. diff --git a/src/Connections/GithubRepo.ts b/src/Connections/GithubRepo.ts index dc4e452d8..15a3dfbe5 100644 --- a/src/Connections/GithubRepo.ts +++ b/src/Connections/GithubRepo.ts @@ -1077,7 +1077,7 @@ export class GitHubRepoConnection extends CommandConnection ({ name: l.name, description: l.description || undefined, color: l.color || undefined }))); await this.intent.sendEvent(this.roomId, { msgtype: "m.notice", - body: content + (labels.plain.length > 0 ? ` with labels ${labels}`: "") + diffContent, + body: content + (labels.plain.length > 0 ? ` with labels ${labels.plain}`: "") + diffContent, formatted_body: md.renderInline(content) + (labels.html.length > 0 ? ` with labels ${labels.html}`: "") + diffContentHtml, format: "org.matrix.custom.html", ...FormatUtil.getPartialBodyForGithubIssue(event.repository, event.pull_request),