[BUG]: Issue-creation intent is missed when the article is omitted (create issue for this)

オープン 初心者向け
#65 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Ankitavasudev がすでに取り組んでいます。

2026年11月12日 から。

  • #66 @Ankitavasudev による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
ollama, python
領域
backend

調査の方向性

まず bot.py の ISSUE_TRIGGER_PATTERN と is_issue_creation_request() を確認し、次に scripts/test_link_and_issue_features.py にある既存の issue 意図のテスト範囲を読みます。列挙された表現を再現し、冠詞のないリクエストと任意の「github」という修飾語が認識されるように、パターンとテスト範囲を拡張します。列挙されたケースが通り、否定に関する文書化済みの制限が変わっていなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

bug enhancement
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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/SkillBot のほかの issue

AOSSIE-Org/SkillBot の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。