Module: LitaGithub::Org
- Defined in:
- lib/lita-github/org.rb
Overview
Github handler common-use Organization methods
Instance Method Summary collapse
Instance Method Details
#organization(name) ⇒ Object
20 21 22 |
# File 'lib/lita-github/org.rb', line 20 def organization(name) name.nil? || name.empty? ? config.default_org : name end |
#sort_by_name(teams) ⇒ Object
24 25 26 |
# File 'lib/lita-github/org.rb', line 24 def sort_by_name(teams) teams.sort_by { |h| h[:name].downcase } end |