Do not reopen closed issues on new incoming email replies, add status/new-reply label instead
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
Research direction
Start by opening MailProcessor.java to locate the logic that handles incoming email replies for closed issues. Modify that logic to skip reopening the issue and adding the status/re-opened-by-bot label, and instead add the status/triage label while still appending the comment. Update the relevant unit tests to verify closed issues remain closed and only receive the new triage label, then remove the unused Labels.REOPENED_BY_BOT constant if it has no other references.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Java
- Stars
- 10
- Forks
- 11
- Avg merge
- 9d 15h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from keycloak/keycloak-github-bot
-
Remove stale issue links from backport PRsPossibly taken @mabartos claimed this 9 days ago. Openkind/enhancement
keycloak/keycloak-github-bot#100 · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 56/100
keycloak/keycloak-github-bot#99 · 3 comments · 1 reaction ·
-
kind/bug status/triage
Difficulty 3/5 Half a day Newbie friendliness 42/100
keycloak/keycloak-github-bot#93 · 2 comments ·
-
Remind issue assignees about missing backport PRsMay be free again @mabartos claimed this 44 days ago, and no pull request is open. Openkind/enhancement status/triage
keycloak/keycloak-github-bot#91 · 1 assignee ·
-
Add labels for AI/API generated issues that don't have any labelsPossibly taken @ahus1 claimed this 63 days ago. Openkind/enhancement status/triage
Difficulty 3/5 1-2 days Newbie friendliness 58/100
All issues in keycloak/keycloak-github-bot
Similar issues
-
feature request needs triage
Difficulty 1/5 Under an hour Newbie friendliness 66/100
TeamNewPipe/NewPipe#14083 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
PCL-Community/PCL-CE#3907 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 2 days
-
`B3PropagatorExtractorMultipleHeaders` allocates when headers are missingPossibly taken @Eliot5566 claimed this today. OpenBug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
open-telemetry/opentelemetry-java#9065 ·
Maintainers usually reply within 3 days
-
area/dependencies area/dependencies/quarkus backport/26.6 backport/26.8 kind/cve severity/critical source/scan-dependencies status/triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days