diff options
| author | Mike McQuaid | 2017-02-20 22:54:51 +0000 |
|---|---|---|
| committer | GitHub | 2017-02-20 22:54:51 +0000 |
| commit | 96a695bc6dd200800a17bcbb2605ee77f326807f (patch) | |
| tree | 2236ad87d16e9bb3971015009cd9562ce3a12bde /Library/Homebrew/dev-cmd | |
| parent | 7fdbf6f47f54f6bd15b0cd2cb9ff7e3de24bdeb5 (diff) | |
| parent | 81a760921320b6508458d6cdbe4c73b3e01b14b3 (diff) | |
| download | brew-96a695bc6dd200800a17bcbb2605ee77f326807f.tar.bz2 | |
Merge pull request #2054 from zmwangx/bump-formula-pr-smarter-dupe
bump-formula-pr: improve duplicate detection
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/bump-formula-pr.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index ea2daf1c4..bfe9c7776 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -80,7 +80,8 @@ module Homebrew def fetch_pull_requests(formula) GitHub.issues_for_formula(formula.name, tap: formula.tap).select do |pr| - pr["html_url"].include?("/pull/") + pr["html_url"].include?("/pull/") && + /(^|\s)#{Regexp.quote(formula.name)}(:|\s|$)/i =~ pr["title"] end rescue GitHub::RateLimitExceededError => e opoo e.message |
