class LockDiff::Github::Directory

Public Class Methods

new(repository, ref, path: nil) click to toggle source
# File lib/lock_diff/github/directory.rb, line 4
def initialize(repository, ref, path: nil)
  @repository = repository
  @ref = ref
  @path = path
end

Public Instance Methods

change_log_urls() click to toggle source
# File lib/lock_diff/github/directory.rb, line 10
def change_log_urls
  contents.select(&:change_log?).map(&:html_url)
rescue Octokit::NotFound
  []
end

Private Instance Methods

contents() click to toggle source
# File lib/lock_diff/github/directory.rb, line 18
def contents
  @contents ||= Github.client.contents(@repository, ref: @ref, path: @path)
end