Do not reopen closed issues on new incoming email replies, add status/new-reply label instead
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
Línea de trabajo
Empieza abriendo MailProcessor.java para localizar la lógica que gestiona las respuestas entrantes por correo electrónico para issues cerradas. Modifica esa lógica para que no vuelva a abrir la issue ni añada la etiqueta status/re-opened-by-bot, sino que añada la etiqueta status/triage y siga adjuntando el comentario. Actualiza las pruebas unitarias pertinentes para verificar que las issues cerradas permanezcan cerradas y solo reciban la nueva etiqueta de triage. Después, elimina la constante no utilizada Labels.REOPENED_BY_BOT si no tiene otras referencias.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Following the discussion with @stianst, when new email replies arrive for an existing security issue (regardless of whether it is open or closed, in triage, waiting for a CVE, or closed/rejected), the bot should no longer reopen the issue or add the status/re-opened-by-bot label.
Instead, it should add the status/new-reply label. This label applies to both open and closed issues, but is only added when there is a new reply on an existing thread—never when a new issue is initially created.
When we respond to the email using commands like @security reply (or other respond/reject commands) or manually remove the label, the status/new-reply label should be removed.
Tracking of these issues will be managed via the GitHub Project (Keycloak Security Queue), configured with views filtered by label to identify issues with new replies needing follow-up, rather than relying on repository-level reopen state.
Proposed Changes
-
Email Processing (
MailProcessor.java):- When an email arrives for an existing issue (which can be either open or closed):
- Do not call
issue.reopen(). - Do not add
status/re-opened-by-bot(Labels.REOPENED_BY_BOT). - Add the
status/new-replylabel to indicate the reporter has sent a new reply. - Note: This label is only added on subsequent replies to existing issues, and never on initial issue creation (where we already know it requires response via
source/email/status/triage). - Append the comment as usual.
- Do not call
- When an email arrives for an existing issue (which can be either open or closed):
-
Command Processing:
- When responding using
@security reply(or respond/reject commands), the bot should automatically remove thestatus/new-replylabel. - If a response is not needed, the label can be removed manually.
- When responding using
-
GitHub Project View:
- Use Keycloak Project #69 to track issues marked with
status/new-replythat require attention and response.
- Use Keycloak Project #69 to track issues marked with
-
Cleanup:
- Remove or deprecate unused
Labels.REOPENED_BY_BOTconstant and related label handling if no longer needed elsewhere.
- Remove or deprecate unused
Acceptance Criteria
- Closed issues remain closed when new email comments are appended via
MailProcessor. -
status/new-replylabel is attached to both open and closed issues when a new email reply arrives. -
status/new-replyis not added to newly created issues upon initial creation. -
status/re-opened-by-botlabel is no longer added. -
status/new-replylabel is automatically removed when responding via@security reply(or equivalent commands). - Unit tests updated to verify closed state is preserved, initial creation does not get the label, and new-reply behavior on existing issues is correct.
- Lenguaje dominante
- Java
- Estrellas
- 10
- Forks
- 11
- Merge medio
- 9 d 15 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 keycloak/keycloak-github-bot
-
Remove stale issue links from backport PRsPosiblemente ocupada @mabartos la tomó hace 9 días. Abiertokind/enhancement
keycloak/keycloak-github-bot#100 · 1 asignado ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 56/100
keycloak/keycloak-github-bot#99 · 3 comentarios · 1 reacción ·
-
kind/bug status/triage
Dificultad 3/5 Medio día Aptitud para principiantes 42/100
keycloak/keycloak-github-bot#93 · 2 comentarios ·
-
Remind issue assignees about missing backport PRsQuizá libre de nuevo @mabartos la tomó hace 44 días y no hay ningún pull request abierto. Abiertokind/enhancement status/triage
keycloak/keycloak-github-bot#91 · 1 asignado ·
-
Add labels for AI/API generated issues that don't have any labelsPosiblemente ocupada @ahus1 la tomó hace 63 días. Abiertokind/enhancement status/triage
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
Todos los issues de keycloak/keycloak-github-bot
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
micronaut-projects/micronaut-core#14585 ·
Los mantenedores suelen responder en 1 día
-
Mend: dependency security vulnerability untriaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
opensearch-project/cross-cluster-replication#1805 ·
Los mantenedores suelen responder en 1 día
-
feature request needs triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 66/100
TeamNewPipe/NewPipe#14083 ·
Los mantenedores suelen responder en 1 día
-
NeoForge 安装任务的子任务描述有误Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
PCL-Community/PCL-CE#3907 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 2 días