Class: PrLog::ParsedChangelog
- Inherits:
-
Object
- Object
- PrLog::ParsedChangelog
- Defined in:
- lib/pr_log/parsed_changelog.rb
Overview
Get mentioned issues from a changelog
Instance Method Summary collapse
-
#initialize(text, options = {}) ⇒ ParsedChangelog
constructor
A new instance of ParsedChangelog.
- #mentioned_issue_numbers ⇒ Object
Constructor Details
#initialize(text, options = {}) ⇒ ParsedChangelog
Returns a new instance of ParsedChangelog.
4 5 6 7 |
# File 'lib/pr_log/parsed_changelog.rb', line 4 def initialize(text, = {}) @text = text @github_repository = .fetch(:github_repository) end |
Instance Method Details
#mentioned_issue_numbers ⇒ Object
9 10 11 |
# File 'lib/pr_log/parsed_changelog.rb', line 9 def mentioned_issue_numbers @text.scan(pull_request_urls_matcher).flatten.map(&:to_i) end |