Skip to content

Commit 837d4b2

Browse files
kyeahalexcanessa
authored andcommitted
Pass issue bodies and PR base/head branches into templating method (#164)
* Pass issue/PR body to templating method * Add pr base and head branch refs
1 parent 025ad77 commit 837d4b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/Gren.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,10 @@ class Gren {
513513
labels: this._templateLabels(issue),
514514
name: issue.title,
515515
text: '#' + issue.number,
516-
url: issue.html_url
516+
url: issue.html_url,
517+
body: issue.body,
518+
pr_base: issue.base && issue.base.ref,
519+
pr_head: issue.head && issue.head.ref
517520
}, this.options.template.issue);
518521
}
519522

0 commit comments

Comments
 (0)