Class: LockDiff::Github::ChangelogUrlFinder
- Inherits:
-
Object
- Object
- LockDiff::Github::ChangelogUrlFinder
- Defined in:
- lib/lock_diff/github/changelog_url_finder.rb
Constant Summary collapse
- CHANGE_LOG_CANDIDATES =
%w( changelog changes history releases releasenote news )
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(repository:, repository_url:, ref:) ⇒ ChangelogUrlFinder
constructor
A new instance of ChangelogUrlFinder.
Constructor Details
#initialize(repository:, repository_url:, ref:) ⇒ ChangelogUrlFinder
13 14 15 16 17 |
# File 'lib/lock_diff/github/changelog_url_finder.rb', line 13 def initialize(repository:, repository_url:, ref:) @repository = repository @repository_url = repository_url @ref = ref end |
Instance Method Details
#call ⇒ Object
19 20 21 |
# File 'lib/lock_diff/github/changelog_url_finder.rb', line 19 def call find_change_log_url || find_release_url end |