Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix badly worded error #64

Merged
merged 1 commit into from
Jan 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/check/valid_owner.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (v *ValidOwner) validateTeam(ctx context.Context, name string) *validateErr

if !teamHasWritePermission() {
return newValidateError(
"Team %q cannot review PRs on %q as neither it nor any parent team does not have write permissions.",
"Team %q cannot review PRs on %q as neither it nor any parent team has write permissions.",
team, v.orgRepoName)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
[err] line 15: Team "masters" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "monarchy" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "naturals" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "ninjas" cannot review PRs on "codeowners-samples" as neither it nor any parent team does not have write permissions.
[err] line 15: Team "ninjas" cannot review PRs on "codeowners-samples" as neither it nor any parent team has write permissions.
[err] line 15: Team "outliers" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "peak-performers" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "power" does not have permissions associated with the repository "codeowners-samples".
Expand All @@ -35,7 +35,7 @@
[err] line 15: Team "titans" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "tribe" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "united" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "vikings" cannot review PRs on "codeowners-samples" as neither it nor any parent team does not have write permissions.
[err] line 15: Team "vikings" cannot review PRs on "codeowners-samples" as neither it nor any parent team has write permissions.
[err] line 15: Team "warriors" does not have permissions associated with the repository "codeowners-samples".
[err] line 15: Team "wolf-pack" does not have permissions associated with the repository "codeowners-samples".
[err] line 17: Team "not-existing-team" does not exist in organization "gh-codeowners".
Expand Down