Do not reopen closed issues on new incoming email replies, add status/new-reply label instead
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 85/100
Hướng nghiên cứu
Bắt đầu bằng cách mở MailProcessor.java để xác định logic xử lý các câu trả lời email đến cho các issue đã đóng. Sửa đổi logic đó để không mở lại issue và không thêm nhãn status/re-opened-by-bot, mà thay vào đó thêm nhãn status/triage đồng thời vẫn nối thêm bình luận. Cập nhật các bài kiểm thử đơn vị liên quan để xác minh rằng các issue đã đóng vẫn giữ trạng thái đóng và chỉ nhận nhãn triage mới, sau đó xóa hằng số không dùng Labels.REOPENED_BY_BOT nếu nó không có tham chiếu nào khác.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 10
- Fork
- 11
- Merge trung bình
- 9 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của keycloak/keycloak-github-bot
-
Remove stale issue links from backport PRsCó thể đã có người làm @mabartos đã nhận 9 ngày trước. Đang mởkind/enhancement
keycloak/keycloak-github-bot#100 · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 56/100
keycloak/keycloak-github-bot#99 · 3 bình luận · 1 reaction ·
-
kind/bug status/triage
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 42/100
keycloak/keycloak-github-bot#93 · 2 bình luận ·
-
Remind issue assignees about missing backport PRsCó thể làm lại được @mabartos đã nhận 44 ngày trước và không có pull request nào đang mở. Đang mởkind/enhancement status/triage
keycloak/keycloak-github-bot#91 · 1 người được giao ·
-
Add labels for AI/API generated issues that don't have any labelsCó thể đã có người làm @ahus1 đã nhận 63 ngày trước. Đang mởkind/enhancement status/triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Tất cả issue của keycloak/keycloak-github-bot
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
micronaut-projects/micronaut-core#14585 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mend: dependency security vulnerability untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
opensearch-project/cross-cluster-replication#1805 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request needs triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 66/100
TeamNewPipe/NewPipe#14083 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
NeoForge 安装任务的子任务描述有误Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
PCL-Community/PCL-CE#3907 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 2 ngày