Class: LockDiff::Github::ChangelogUrlFinder

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(repository:, github_url:, ref:) ⇒ ChangelogUrlFinder



13
14
15
16
17
# File 'lib/lock_diff/github/changelog_url_finder.rb', line 13

def initialize(repository:, github_url:, ref:)
  @repository = repository
  @github_url = github_url
  @ref = ref
end

Instance Method Details

#callObject



19
20
21
# File 'lib/lock_diff/github/changelog_url_finder.rb', line 19

def call
  find_change_log_url || find_release_url
end