From 0587f6ffa1afc00d2be2a906c6c83c932adf2119 Mon Sep 17 00:00:00 2001 From: Kevin Yeh Date: Thu, 10 May 2018 15:05:28 -0400 Subject: [PATCH 1/2] Pass issue/PR body to templating method --- lib/src/Gren.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/Gren.js b/lib/src/Gren.js index 16f3f75a..c66c0b00 100644 --- a/lib/src/Gren.js +++ b/lib/src/Gren.js @@ -509,7 +509,8 @@ class Gren { labels: this._templateLabels(issue), name: issue.title, text: '#' + issue.number, - url: issue.html_url + url: issue.html_url, + body: issue.body }, this.options.template.issue); } From a7049d97307ad4105afff95b335856832d341644 Mon Sep 17 00:00:00 2001 From: Kevin Yeh Date: Thu, 10 May 2018 15:28:14 -0400 Subject: [PATCH 2/2] Add pr base and head branch refs --- lib/src/Gren.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/Gren.js b/lib/src/Gren.js index c66c0b00..fbdeec67 100644 --- a/lib/src/Gren.js +++ b/lib/src/Gren.js @@ -510,7 +510,9 @@ class Gren { name: issue.title, text: '#' + issue.number, url: issue.html_url, - body: issue.body + body: issue.body, + pr_base: issue.base && issue.base.ref, + pr_head: issue.head && issue.head.ref }, this.options.template.issue); }