Top Level Namespace
Defined Under Namespace
Modules: URBANopt
Classes: DefaultFeatureReports, DefaultFeatureReportsTest
Constant Summary
collapse
- @@logger =
Logger.new(STDOUT)
Instance Method Summary
collapse
Instance Method Details
#get_html_url(issue) ⇒ Object
65
66
67
|
# File 'lib/change_log.rb', line 65
def get_html_url(issue)
issue.html_url
end
|
#get_issue_num(issue) ⇒ Object
61
62
63
|
# File 'lib/change_log.rb', line 61
def get_issue_num(issue)
"\##{get_num(issue)}"
end
|
#get_num(issue) ⇒ Object
57
58
59
|
# File 'lib/change_log.rb', line 57
def get_num(issue)
issue.html_url.split('/')[-1].to_i
end
|
#get_title(issue) ⇒ Object
69
70
71
|
# File 'lib/change_log.rb', line 69
def get_title(issue)
issue.title
end
|
#print_issue(issue) ⇒ Object
73
74
75
76
77
78
79
80
81
82
|
# File 'lib/change_log.rb', line 73
def print_issue(issue)
is_feature = false
issue.labels.each { |label| is_feature = true if label.name == 'Feature Request' }
if is_feature
"- Improved [#{get_issue_num(issue)}]( #{get_html_url(issue)} ), #{get_title(issue)}"
else
"- Fixed [#{get_issue_num(issue)}]( #{get_html_url(issue)} ), #{get_title(issue)}"
end
end
|