Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-ci committed Jun 23, 2023
1 parent 933288c commit 33fbb0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions common/lib/dependabot/pull_request_creator/message_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ def group_intro
"with #{update_count} update#{update_count > 1 ? 's' : ''}:"

msg += if update_count >= 5
header = ["Package", "Update"]
rows = dependencies.map { |dep| [dependency_link(dep), dependency_version_update(dep)] }
"\n\n#{table([header] + rows)}"
header = %w(Package Update)
rows = dependencies.map { |dep| [dependency_link(dep), dependency_version_update(dep)] }
"\n\n#{table([header] + rows)}"
elsif update_count > 1
" #{dependency_links[0..-2].join(', ')} and #{dependency_links[-1]}."
else
Expand Down Expand Up @@ -428,14 +428,14 @@ def metadata_links_for_dep(dep)
def table(rows)
[
table_header(rows[0]),
rows[1..].map { |r| table_row(r) },
rows[1..].map { |r| table_row(r) }
].join("\n")
end

def table_header(row)
[
table_row(row),
table_row(["---"] * row.count),
table_row(["---"] * row.count)
].join("\n")
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,7 @@ def commits_details(base:, head:)
body: fixture("github", "business_releases.json"),
headers: json_header)
stub_request(:get, "https://api.github.com/repos/gocardless/" \
"business#{i}/contents/CHANGELOG.md?ref=master").
"business#{i}/contents/CHANGELOG.md?ref=master").
to_return(status: 200,
body: fixture("github", "changelog_contents.json"),
headers: json_header)
Expand Down Expand Up @@ -2177,7 +2177,6 @@ def commits_details(base:, head:)
end
end


context "with a directory specified" do
let(:gemfile) do
Dependabot::DependencyFile.new(
Expand Down

0 comments on commit 33fbb0c

Please sign in to comment.