Use GitHub tags to reference GitHub users

This will use @tags to notify the contributor that their contribution is in the changelog.

As discussed in https://github.com/github/linguist/pull/2698#issuecomment-150887871
This commit is contained in:
phase 2015-10-25 00:51:11 -07:00 committed by Olle Jonsson
parent 8bd4578e44
commit df31f98ce3

View File

@ -171,11 +171,15 @@ module GitHubChangelogGenerator
unless issue.pull_request.nil? unless issue.pull_request.nil?
if @options[:author] if @options[:author]
title_with_number += if issue.user.nil? if issue.user.nil?
" ({Null user})" title_with_number += " ({Null user})"
else else
" ([#{issue.user.login}](#{issue.user.html_url}))" if issue.user.html_url.exclude? "github.com"
end title_with_number += " ([#{issue.user.login}](#{issue.user.html_url}))"
else
title_with_number += " (@#{issue.user.login})"
end
end
end end
end end
title_with_number title_with_number