Environment reviewers silently dropped when reviewer access is granted in the same sync
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- github, javascript
- Ambito
- backend
Direzione di ricerca
Start in lib/settings.js at the updateRepos() paths linked in the issue, then trace how the teams and environments child plugins are scheduled. Check how the environments plugin sends its PUT and what tests cover a full sync. Done means one sync that grants a team's repo access also creates the environment with that team as a reviewer.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem Description
What is actually happening
A single config change that both grants a team repo access and names that team as an environment reviewer creates the environment without the reviewer. Example repo config:
teams:
- name: deployers
permission: maintain
environments:
- name: prod
reviewers:
- type: Team
id: 12345678 # deployers
updateRepos() runs every child plugin concurrently, so the environments plugin's PUT can land before the teams plugin grants access:
The no-repo-config branch has the same pattern:
GitHub's PUT /repos/{owner}/{repo}/environments/{environment_name} returns 200 for a reviewer that has no repo access, but it doesn't add the reviewer. The sync reports success, and the environment has no required reviewers until a later sync runs. Because nop mode doesn't render environment changes, the plan doesn't flag it either.
Debug log from the affected full sync, in order:
GitHub request: PUT https://api.github.com/repos/<org>/<repo>/environments/prod - 200
GitHub request: PUT https://api.github.com/orgs/<org>/teams/<team>/repos/<org>/<repo> - 204
What is the expected behavior
The environment is created with the configured reviewer in the same sync that grants the reviewer repo access.
Error output, if available
None. Every request returns 2xx.
Context
Are you using the hosted instance of probot/settings or running your own?
Running our own, via full-sync.js in GitHub Actions.
If running your own instance, are you using it with github.com or GitHub Enterprise?
github.com
Version of probot/settings
3.0.0, and the same code is on main-enterprise at e19444e0d69de050ba55d0262b71fcd8a98edfef
Version of GitHub Enterprise
- Lingua principale
- JavaScript
- Stelle
- 942
- Fork
- 238
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github-community-projects/safe-settings
-
Teams: teams with organization-role access show up as deletionsForse già presa @TovaBecker l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
github-community-projects/safe-settings#1144 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
github-community-projects/safe-settings#1143 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
github-community-projects/safe-settings#1135 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
github-community-projects/safe-settings#1134 ·
I maintainer di solito rispondono entro 2 giorni
-
environments: additive_plugins is ignored, undeclared environments are deletedForse già presa @yaunj l’ha presa 12 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
github-community-projects/safe-settings#1133 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di github-community-projects/safe-settings
Issue simili
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Ionaru/easy-markdown-editor#657 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
TMHSDigital/Free-Game-Dev-Assets#320 ·
I maintainer di solito rispondono entro 1 giorno
-
area:webapp bug finding
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Long working directory path draws over the Console pane's buttons when the Console has no other tabsApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 87/100
ossf/wg-best-practices-os-developers#1209 ·
I maintainer di solito rispondono entro 1 giorno