Skip to content

Commit f6a2535

Browse files
committed
Fix rubocop
1 parent 426fcb5 commit f6a2535

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

_tools/changelog_generator/changelog_generator.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def search_pr_numbers(before:, after:)
6060
# @param prs [Array<Hash>]
6161
#
6262
# @return [String]
63-
def generate_category_changelog(prs)
63+
def generate_category_changelog(prs) # rubocop:disable Metrics/AbcSize,Metrics/CyclomaticComplexity,Metrics/MethodLength,Metrics/PerceivedComplexity
6464
lines = []
6565
found_pr_numbers = []
6666
prs = prs.dup
@@ -107,13 +107,13 @@ def generate_category_changelog(prs)
107107
"#{lines.join("\n")}\n"
108108
end
109109

110-
# @param pr [Hash]
110+
# @param pull_request [Hash]
111111
#
112112
# @return [String]
113-
def generate_changelog_line(pr)
114-
author = pr["author"]["login"].delete_prefix("app/")
113+
def generate_changelog_line(pull_request)
114+
author = pull_request["author"]["login"].delete_prefix("app/")
115115

116-
"* #{pr["title"]} by @#{author} in #{pr["url"]}"
116+
"* #{pull_request["title"]} by @#{author} in #{pull_request["url"]}"
117117
end
118118

119119
changelog_body = +""

0 commit comments

Comments
 (0)