-
Notifications
You must be signed in to change notification settings - Fork 167
Cannot add teams to repo.yml #809
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
Comments
@decyjphr Can you add some thoughts ? |
@bheemvennapureddy the Is that the case in your setting? It should be something like this: # .github/repos/Prequal.yml
repository:
name: Prequal
...
teams:
- name: SRE
permission: maintain
- name: "Engineering Members"
permission: push |
@bheemvennapureddy I tried to recreate it but I couldn't. I tested by adding 2 or more teams in the |
@bheemvennapureddy instead of using "Engineering Members" as the team name, you might want to use the team name that github understands like "engineering-managers".. whatever the team name is called in the team URL if that makes sense. |
Problem Description
What's Happening
We're managing repository-level team permissions using individual repo YAML files (e.g.,
Mobile.yml
,Web.yml
,infra.yml
) under the.github/repos
directory. We do not maintain any team configurations insettings.yml
.The intent is to explicitly grant certain teams (like all engineering teams) permissions to deploy to non-prod environments. For example:
However, when applying these settings, we encounter the following error:
API response:
This seems to happen when the team already exists or is already associated with the repository.
Expected Behavior
We want to know if there's a way to skip adding a team if it already exists or is already associated with the repository, to avoid the 422 error. Ideally, the settings app should be idempotent in this case.
Context
probot/settings
probot/settings
: [please insert version]The text was updated successfully, but these errors were encountered: