Skip to content

Commit

Permalink
Merge pull request #35 from zendesk/invalid-owner
Browse files Browse the repository at this point in the history
Invalid owner
  • Loading branch information
zdrve authored Jan 17, 2024
2 parents ac30926 + 6236a0e commit 88c509e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/check-codeowners

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/checking_mode_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@

aggregate_failures do
expect(r.status.exitstatus).to eq(1)
expect(r.stdout).to eq("ERROR: Invalid owner @org/team1 at .github/CODEOWNERS:1\n" + help_message)
expect(r.stdout).to eq("ERROR: Invalid owner @org/team1 at .github/CODEOWNERS:1, not present in .github/VALIDOWNERS\n" + help_message)
expect(r.stderr).to eq("")
end
end
Expand Down
2 changes: 1 addition & 1 deletion src/lib/check_codeowners/checks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def check_valid_owners
bad_owners.each do |bad_owner|
errors << {
code: "invalid_owner",
message: "Invalid owner #{bad_owner} at #{entry.file}:#{entry.line_number}",
message: "Invalid owner #{bad_owner} at #{entry.file}:#{entry.line_number}, not present in .github/VALIDOWNERS",
bad_owner: bad_owner,
entry: entry
}
Expand Down

0 comments on commit 88c509e

Please sign in to comment.