improve repo validation error message#1764
Conversation
945be99 to
a60dd9d
Compare
src/validate.rs
Outdated
| } | ||
| for team_name in repo.access.teams.keys() { | ||
| if !github_teams.contains(&(repo.org.clone(), team_name.clone())) { | ||
| let is_team_archived = data.archived_teams().any(|t| t.name() == team_name); |
There was a problem hiding this comment.
We should start taking organizations into account :) Ideally by creating some form of Team/RepoId, which contains both the org and the name. To avoid naming collisions across different organizations.
There was a problem hiding this comment.
right. Can this be a separate issue?
There was a problem hiding this comment.
Sure, but I would rather not add new code that doesn't consider organizations. There's a possibly bigger problem here though, as you should check the github team name (and organization), not the team team name (yeah, it's confusing.. xD).
There was a problem hiding this comment.
Yeah, because access.teams refers to github team names, not team team names xD
Dry-run check results |
a60dd9d to
d13f963
Compare
The new version of the validation error is still not very clear to me (that I don't know a lot about the How about this:
|
d13f963 to
d482fcb
Compare
|
rephrased, thanks a lot! This kind of feedback is very useful 🙏 |
A user complained in #1763 (comment) that this error was confusing.
tested against that PR: