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,10 +171,14 @@ module GitHubChangelogGenerator
unless issue.pull_request.nil?
if @options[:author]
title_with_number += if issue.user.nil?
" ({Null user})"
if issue.user.nil?
title_with_number += " ({Null user})"
else
" ([#{issue.user.login}](#{issue.user.html_url}))"
if issue.user.html_url.exclude? "github.com"
title_with_number += " ([#{issue.user.login}](#{issue.user.html_url}))"
else
title_with_number += " (@#{issue.user.login})"
end
end
end
end