Module: LitaGithub::Repo

Included in:
Lita::Handlers::GithubPR, Lita::Handlers::GithubRepo
Defined in:
lib/lita-github/repo.rb

Overview

Github handler common-use Repository methods

Instance Method Summary collapse

Instance Method Details

#repo?(r) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/lita-github/repo.rb', line 24

def repo?(r)
  octo.repository?(r)
end

#rpo(org, repo) ⇒ Object



20
21
22
# File 'lib/lita-github/repo.rb', line 20

def rpo(org, repo)
  "#{org}/#{repo}"
end