Do not reopen closed issues on new incoming email replies, add status/new-reply label instead
まだ誰も着手していません。
評価
調査の方向性
まず MailProcessor.java を開き、クローズされた issue に対する受信メールの返信を処理するロジックを特定します。そのロジックを変更し、issue を再オープンしたり status/re-opened-by-bot ラベルを追加したりせず、コメントは引き続き追加しながら、代わりに status/triage ラベルを追加するようにします。関連するユニットテストを更新して、クローズされた issue がクローズ状態を維持し、新しい triage ラベルのみを受け取ることを確認します。その後、他に参照がなければ、未使用の Labels.REOPENED_BY_BOT 定数を削除します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Java
- スター
- 10
- フォーク
- 11
- 平均マージ
- 9日 15時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
keycloak/keycloak-github-bot のほかの issue
-
Remove stale issue links from backport PRs対応中かも @mabartos が 9 日前に担当しました。 オープンkind/enhancement
keycloak/keycloak-github-bot#100 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
keycloak/keycloak-github-bot#99 · コメント 3 件 · リアクション 1 件 ·
-
kind/bug status/triage
難易度 3/5 半日 初心者へのやさしさ 42/100
keycloak/keycloak-github-bot#93 · コメント 2 件 ·
-
Remind issue assignees about missing backport PRs再び着手できるかも @mabartos が 44 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンkind/enhancement status/triage
keycloak/keycloak-github-bot#91 · 担当者 1 名 ·
-
Add labels for AI/API generated issues that don't have any labels対応中かも @ahus1 が 63 日前に担当しました。 オープンkind/enhancement status/triage
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
keycloak/keycloak-github-bot の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
micronaut-projects/micronaut-core#14585 ·
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
opensearch-project/cross-cluster-replication#1805 ·
メンテナーはふだん 1 日以内に返信
-
feature request needs triage
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
TeamNewPipe/NewPipe#14083 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
PCL-Community/PCL-CE#3907 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 2 日以内に返信