[BUG]: Issue-creation intent is missed when the article is omitted (create issue for this)
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
調査の方向性
まず bot.py の ISSUE_TRIGGER_PATTERN と is_issue_creation_request() を確認し、次に scripts/test_link_and_issue_features.py にある既存の issue 意図のテスト範囲を読みます。列挙された表現を再現し、冠詞のないリクエストと任意の「github」という修飾語が認識されるように、パターンとテスト範囲を拡張します。列挙されたケースが通り、否定に関する文書化済みの制限が変わっていなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Bug Description
is_issue_creation_request() only fires when the verb is followed by an explicit article (an?):
# bot.py:312
ISSUE_TRIGGER_PATTERN = re.compile(r"\b(create|open|file|raise|make)\s+an?\s+issue\b", re.IGNORECASE)
The article is optional in normal English, and dropping it is common in short Discord messages. When the pattern misses, execution falls through to the normal Ollama answer path (bot.py:563-567), so the bot replies to the request conversationally instead of drafting and opening the issue. The user gets no error and no indication that their explicit request was ignored.
Steps to Reproduce
In a thread mapped to a repo, send any of these:
| Message | is_issue_creation_request() |
|---|---|
create an issue for this |
True |
create issue for this |
False |
open issue |
False |
make issue |
False |
file an issue |
True |
Or directly:
from bot import is_issue_creation_request
for q in ["create an issue", "create issue for this", "open issue", "make issue"]:
print(repr(q), is_issue_creation_request(q))
Output:
'create an issue' True
'create issue for this' False
'open issue' False
'make issue' False
Logs and Screenshots
For the failing phrasings the log shows the normal path (MAPPED PROJECT followed by the Ollama request) and never reaches EXPLICIT ISSUE-CREATION REQUEST detected, which is logged at bot.py:564 when the check succeeds.
Environment Details
- OS: Windows 11
- Python: 3.14.0
- Repository HEAD at time of filing
Impact
Medium - an explicitly requested feature silently does nothing for a common phrasing.
Suggested fix
Make the article optional and allow an optional "github" qualifier:
ISSUE_TRIGGER_PATTERN = re.compile(
r"\b(?:create|open|file|raise|make)\s+(?:an?\s+)?(?:github\s+)?issue\b",
re.IGNORECASE,
)
Then extend the existing coverage in scripts/test_link_and_issue_features.py, which currently only tests "an issue" / "a issue" variants. The documented negation limitation ("please don't create an issue") is separate and would remain unchanged.
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- 主要言語
- Python
- スター
- 10
- フォーク
- 11
- 平均マージ
- 6分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/SkillBot のほかの issue
-
[BUG]: Non-Atomic Gap Log Writes Can Cause Data Loss After an Interrupted Save再び着手できるかも @SYED-IRTEZA-HUSSAIN-RIZVI が 11 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
AOSSIE-Org/SkillBot#61 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: os.chdir() Changes the Process-Wide Working Directory During Repository Sync対応中かも @aadityachhipa80-oss が 2 日前に担当しました。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
AOSSIE-Org/SkillBot#59 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: wait_for_ollama() Retries Indefinitely When Ollama Is Unavailable再び着手できるかも @SYED-IRTEZA-HUSSAIN-RIZVI が 11 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AOSSIE-Org/SkillBot#56 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: Backlog Messages Are Re-processed on Discord Reconnection再び着手できるかも @SYED-IRTEZA-HUSSAIN-RIZVI が 11 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
AOSSIE-Org/SkillBot#58 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: _log_gap() Performs Blocking File I/O on the Async Event Loop対応中かも @abu-tahir-0 が 13 日前に担当しました。 オープンbug enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
AOSSIE-Org/SkillBot#57 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
AOSSIE-Org/SkillBot の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gke-labs/kube-agents#6778 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Declare the CMS schema library in the optional recipients extra対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea:python in-progress
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
yhay81/pyropdf#1005 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area/build-framework kind/enhancement priority/low
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
yugabyte/yugabyte-db#38826 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
sususweet/midea_auto_cloud#306 ·
メンテナーはふだん 9 日以内に返信