Allow --gh-team-allowlist
to work with team names and slugs
#2717
Labels
feature
New functionality/enhancement
--gh-team-allowlist
to work with team names and slugs
#2717
Community Note
Describe the user story
The gh team allowlist seems like it should work for slugs but it only works with names.
Related doc PRs
Possibly related discussion #2716
Describe the solution you'd like
Allow both slug or name.
The
Node
exposesName
but also exposesSlug
and we only append theName
.atlantis/server/events/vcs/github_client.go
Line 524 in f3bf05e
atlantis/server/events/vcs/github_client.go
Lines 531 to 537 in f3bf05e
atlantis/server/events/vcs/github_client.go
Lines 553 to 555 in f3bf05e
This function is called here
atlantis/server/events/command_runner.go
Lines 198 to 202 in f3bf05e
atlantis/server/events/team_allowlist_checker.go
Lines 43 to 72 in f3bf05e
Describe the drawbacks of your solution
Additional logic to check for both
Describe alternatives you've considered
None
The text was updated successfully, but these errors were encountered: