Skip to content

Commit

Permalink
Fix renderer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilhelm Klopp committed Oct 30, 2017
1 parent 9fd0f1a commit df04c7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/slack/renderer/PullRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ class PullRequest extends AbstractIssue {
}

if (!this.major) {
return {
const message = {
attachments: [
this.getMainAttachment(),
],
};
message.attachments[0].pretext = this.getPreText('Pull request');
return message;
}

const attachments = [
Expand Down
1 change: 1 addition & 0 deletions test/renderer/__snapshots__/PullRequest.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Object {
"mrkdwn_in": Array [
"text",
],
"pretext": "[github-slack/app] Pull request closed by bkeepers",
"title": "#36 Rearrange logic",
"title_link": "https://github.com/github-slack/app/pull/36",
"ts": 1506619320,
Expand Down

0 comments on commit df04c7a

Please sign in to comment.