Skip to content

Commit 7831ba6

Browse files
committed
allow for trailing slash in PR-URL
Current regular expression will not match URL that ends in a slash.
1 parent ecfd775 commit 7831ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commit-stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function commitStream (ghUser, ghProject) {
3131
if (!commit.reviewers)
3232
commit.reviewers = []
3333
commit.reviewers.push({ name: m[1], email: m[2] })
34-
} else if (m = line.match(/^\s+PR(?:[- ]?URL)?:?\s*(.+)\s*$/)) {
34+
} else if (m = line.match(/^\s+PR(?:[- ]?URL)?:?\s*(.+)[(\/)?]\s*$/)) {
3535
commit.prUrl = m[1]
3636
if (ghUser && ghProject && (m = commit.prUrl.match(/^\s*#?(\d+)\s*$/))) {
3737
commit.prUrl = 'https://github.com/' + ghUser + '/' + ghProject + '/pull/' + m[1]

0 commit comments

Comments
 (0)