Skip to content

Commit

Permalink
allow PR as well as PR-?URL
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Mar 6, 2015
1 parent e5002d4 commit 04e1959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commit-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function commitStream (ghUser, ghProject) {
if (!commit.reviewers)
commit.reviewers = []
commit.reviewers.push({ name: m[1], email: m[2] })
} else if (m = line.match(/^\s+PR[- ]?URL:?\s*(.+)\s*$/i)) {
} else if (m = line.match(/^\s+PR(?:[- ]?URL)?:?\s*(.+)\s*$/i)) {
commit.prUrl = m[1]
if (m = commit.prUrl.match(/^\s*#?(\d+)\s*$/))
commit.prUrl = `https://github.com/${ghUser}/${ghProject}/pull/${m[1]}`
Expand Down

0 comments on commit 04e1959

Please sign in to comment.