Class: Danger::DangerFavro
- Inherits:
-
Plugin
- Object
- Plugin
- Danger::DangerFavro
- Defined in:
- lib/favro/plugin.rb
Overview
This is a danger plugin that detects Favro cards in added code and pr titles
Instance Method Summary collapse
Instance Method Details
#check(user_name: nil, api_token: nil, organization_id: nil, key: nil) ⇒ void
This method returns an undefined value.
Check for cards.
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/favro/plugin.rb', line 32 def check(user_name: nil, api_token: nil, organization_id: nil, key: nil) return unless setup(user_name, api_token, organization_id, key) ids = find_card_ids([title] + file_additions) return if ids.empty? client = ApiClient.new(@user_name, @api_token, @organization_id) cards = client.get(ids) render_table(cards) end |