/update: the bot is refused on contributors' forks (worked on the owner's fork), and it doesn't log why
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 65/100
Línea de trabajo
Start with the /update workflow code and run 39116506769 to find where the update-branch API response is handled; add failure status and message logging without secrets. Reproduce the request on a contributor fork and compare it with the successful maintainer call. Update CONTRIBUTING.md and docs/AGENT_WORKFLOW.md to describe the confirmed behavior; done when the cause is confirmed and the docs match.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Follow-up to #472 (#464).
During its pre-merge test, /update could update a branch in itsskofficial/Sentient, the repo owner's own fork. On the first real use, on #407 from syedmustafan/Sentient with "Allow edits by maintainers" on, PUT /pulls/{n}/update-branch with the workflow token was refused. The fallback worked as designed: the button hint plus the needs update label. A maintainer then ran the same API call with their own credentials and it succeeded.
So the built-in GITHUB_TOKEN probably can't push to forks owned by other people. It only worked on the admin's own fork. The run log (run 39116506769) also doesn't show the status or message GitHub returned, so this can't be confirmed from the log.
To do:
- Log the update-branch response status and message (no secrets) whenever it fails.
- Confirm the cause on a contributor fork, and update CONTRIBUTING.md and docs/AGENT_WORKFLOW.md to match. The likely result is that
/updatemerges main on same-repo branches only, and on forks it offers the button and labels the PR for a maintainer. That is fine with our policy, because maintainers handle labelled PRs. - Only if the owner wants it: a GitHub App with contents:write could update fork branches. That needs a setup decision, so don't add new secrets without asking.
- Lenguaje dominante
- Python
- Estrellas
- 702
- Forks
- 113
- Merge medio
- 5 h 8 min
- PR fusionados (30 d)
- 171
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de existence-master/Sentient
-
area: channels enhancement good first issue priority: P2 size: S
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
existence-master/Sentient#457 ·
Los mantenedores suelen responder en 1 día
-
area: desktop bug good first issue priority: P2 size: S
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
existence-master/Sentient#454 ·
Los mantenedores suelen responder en 1 día
-
area: desktop bug priority: P2 size: S
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
existence-master/Sentient#440 ·
Los mantenedores suelen responder en 1 día
-
area: desktop bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
existence-master/Sentient#426 ·
Los mantenedores suelen responder en 1 día
-
area: memory bug flaky
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
existence-master/Sentient#422 ·
Los mantenedores suelen responder en 1 día
Todos los issues de existence-master/Sentient
Issues similares
-
debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
microsoft/vscode-flake8#601 ·
Los mantenedores suelen responder en 1 día
-
nonews refactor
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Uninett/nav#4255 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 3 días
-
Claiming namespace `codearcade`Abiertonamespace operations
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
EclipseFdn/open-vsx.org#14421 ·
Los mantenedores suelen responder en 1 día
-
untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ubuntu/ubuntu-project-docs#850 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día