Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork849
Add contributors on own line option#1004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -47,6 +47,7 @@ def generate_content | ||||
merge_string = get_string_for_issue(issue) | ||||
content += "- " unless @body_only | ||||
content += "#{merge_string}\n" | ||||
content += "\n" if @options[:contributors_on_own_line] && issue["pull_request"] && issue != @issues.last | ||||
end | ||||
content += "\n" | ||||
end | ||||
@@ -97,14 +98,18 @@ def body_till_first_break(body) | ||||
def issue_line_with_user(line, issue) | ||||
return line if !@options[:author] || issue["pull_request"].nil? | ||||
user =user(issue["user"]) | ||||
return "#{line} ({Null user})" unless user | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more.
Suggested change
| ||||
return "#{line} (#{user})" unless @options[:contributors_on_own_line] | ||||
"#{line}\n\n *#{user}*" | ||||
end | ||||
def user(user) | ||||
return "{Null user}" unless user | ||||
@options[:usernames_as_github_logins] ? "@#{user['login']}" : "[#{user['login']}](#{user['html_url']})" | ||||
end | ||||
ENCAPSULATED_CHARACTERS = %w(< > * _ \( \) [ ] #) | ||||