Class: GitReleaseNotes::IssueEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/git_release_notes/issue_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#git_messageObject

Returns the value of attribute git_message.



3
4
5
# File 'lib/git_release_notes/issue_entry.rb', line 3

def git_message
  @git_message
end

#git_timestampObject

Returns the value of attribute git_timestamp.



3
4
5
# File 'lib/git_release_notes/issue_entry.rb', line 3

def git_timestamp
  @git_timestamp
end

#issue_noObject

Returns the value of attribute issue_no.



3
4
5
# File 'lib/git_release_notes/issue_entry.rb', line 3

def issue_no
  @issue_no
end

#jira_statusObject

Returns the value of attribute jira_status.



3
4
5
# File 'lib/git_release_notes/issue_entry.rb', line 3

def jira_status
  @jira_status
end

#jira_summaryObject

Returns the value of attribute jira_summary.



3
4
5
# File 'lib/git_release_notes/issue_entry.rb', line 3

def jira_summary
  @jira_summary
end

Instance Method Details



9
10
11
# File 'lib/git_release_notes/issue_entry.rb', line 9

def jira_md_link
  "[#{issue_no}](#{jira_path})"
end

#jira_pathObject



13
14
15
# File 'lib/git_release_notes/issue_entry.rb', line 13

def jira_path
  "#{ENV['JIRA_URL']}/browse/#{issue_no}"
end

#summaryObject



17
18
19
# File 'lib/git_release_notes/issue_entry.rb', line 17

def summary
  jira_summary || "[git] #{git_message}"
end

#to_md_stringObject



5
6
7
# File 'lib/git_release_notes/issue_entry.rb', line 5

def to_md_string
  "#{jira_md_link} #{summary}"
end