usernames_as_github_logins: Use option

This commit is contained in:
Olle Jonsson 2016-07-02 17:20:31 +02:00
parent 58bfa047c4
commit 3962474e9f

View File

@ -179,7 +179,7 @@ module GitHubChangelogGenerator
user = issue.user user = issue.user
return "#{line} ({Null user})" unless user return "#{line} ({Null user})" unless user
if user.html_url.include?("github.com") if @options[:usernames_as_github_logins]
"#{line} (@#{user.login})" "#{line} (@#{user.login})"
else else
"#{line} ([#{user.login}](#{user.html_url}))" "#{line} ([#{user.login}](#{user.html_url}))"