Skip to content

Commit

Permalink
Improved issue matching
Browse files Browse the repository at this point in the history
Now supports any generic issue URL that contains `/issues/{number}`
  • Loading branch information
cookpete committed Oct 23, 2017
1 parent 28a0662 commit ce1954e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commits.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const MATCH_STATS = /(\d+) files? changed(?:, (\d+) insertions?...)?(?:, (\d+) d
const TAG_PREFIX = 'tag: '

// https://help.github.com/articles/closing-issues-via-commit-messages
const MATCH_ISSUE_FIX = /(?:close(?:s|d)?|fix(?:es|ed)?|resolve(?:s|d)?)\s(#\d+|https?:\/\/github\.com\/[^/]+\/[^/]+\/issues\/\d+)/gi
const MATCH_ISSUE_FIX = /(?:close(?:s|d)?|fix(?:es|ed)?|resolve(?:s|d)?)\s(#\d+|https?:\/\/.+\/issues\/\d+)/gi
const MATCH_PULL_MERGE = /Merge pull request (#\d+) from .+\n\n(.+)/

export function parseCommits (string) {
Expand Down

0 comments on commit ce1954e

Please sign in to comment.