Method: EasyChangelog::Entry#ref
- Defined in:
- lib/easy_changelog/entry.rb
#ref ⇒ Object
38 39 40 41 42 |
# File 'lib/easy_changelog/entry.rb', line 38 def ref raise ArgumentError, 'ref_type must be issues, pull, or commit' unless %w[issues pull commit].include?(ref_type) "[##{ref_id}](#{EasyChangelog.configuration.repo_url}/#{ref_type}/#{ref_id})" end |