Closed gregnrobinson closed 3 months ago
It appears that environments on private and internal repositories must be used on specific pricing plans. When I executed the use case mentioned above, I was trying to modify my repository to a private repository which results in the environments plugin error.
When I switch the repository back to public, the run succeeds.
This issue can be closed.
Problem Description
When creating a specific repository yaml file for a repo in
./github/repos
that has environments provisioned at the suborg level, an error appears for the repository with the message below.The yaml definition used for
./github/suborgs/XXXX.yaml
is:The yaml definition I used for
./github/repos/XXXX_backend.yml
is:If I add the environments explicitly to the
./github/repos/XXXX_backend.yml
file the same error persists.If I remove the environments section in
.github/suborgs/XXXX.yml
suborg and in.github/repos/XXXX_backend.yml
, safe-settings succeeds for both the suborg configurations and specific repository override definition in.github/repos/XXXX_backend.yml
.If the environments block is referenced in the suborg yaml, it will always error when a specific repository yaml file is added to to
./github/repos
folder for that specific repo override in./github/repos
. The error appears when the suborg also matches the specific repo override file in./github/repos
.If the suborg yaml for
XXXX*
does not have an environments block declared, the file in./github/repos
folder will succeed for that suborg.What is actually happening
safe-settings returns an error when there are environments configured at the suborg level.
What is the expected behavior
The suborg should provision most of the configuration for the repositories and for this use case, we only want to override repository visibility on a few repositories.
Error output, if available
Context
Are you using the hosted instance of probot/settings or running your own?
Running safe settings on AKS with ingress for webhook.
If running your own instance, are you using it with github.com or GitHub Enterprise?
GitHub Enterprise
Version of probot/settings
Running Probot v12.3.3 (Node.js: v16.20.2)
Version of GitHub Enterprise
GitHub Enterprise Server 3.11