[BUG]: Issue-creation intent is missed when the article is omitted (create issue for this)
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
Línea de trabajo
Empieza con ISSUE_TRIGGER_PATTERN e is_issue_creation_request() en bot.py y luego lee la cobertura existente de la intención de crear issues en scripts/test_link_and_issue_features.py. Reproduce las formulaciones indicadas y amplía el patrón y la cobertura para que se reconozcan las solicitudes sin artículo y el calificativo opcional «github». El trabajo está terminado cuando pasan los casos indicados y la limitación documentada sobre las negaciones permanece sin cambios.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 10
- Forks
- 11
- Merge medio
- 6 min
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/SkillBot
-
[BUG]: Non-Atomic Gap Log Writes Can Cause Data Loss After an Interrupted SaveQuizá libre de nuevo @SYED-IRTEZA-HUSSAIN-RIZVI la tomó hace 11 días y no hay ningún pull request abierto. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
AOSSIE-Org/SkillBot#61 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG]: os.chdir() Changes the Process-Wide Working Directory During Repository SyncPosiblemente ocupada @aadityachhipa80-oss la tomó hace 2 días. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
AOSSIE-Org/SkillBot#59 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG]: wait_for_ollama() Retries Indefinitely When Ollama Is UnavailableQuizá libre de nuevo @SYED-IRTEZA-HUSSAIN-RIZVI la tomó hace 11 días y no hay ningún pull request abierto. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
AOSSIE-Org/SkillBot#56 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG]: Backlog Messages Are Re-processed on Discord ReconnectionQuizá libre de nuevo @SYED-IRTEZA-HUSSAIN-RIZVI la tomó hace 11 días y no hay ningún pull request abierto. Abiertobug enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
AOSSIE-Org/SkillBot#58 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG]: _log_gap() Performs Blocking File I/O on the Async Event LoopPosiblemente ocupada @abu-tahir-0 la tomó hace 13 días. Abiertobug enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
AOSSIE-Org/SkillBot#57 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de AOSSIE-Org/SkillBot
Issues similares
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
gke-labs/kube-agents#6778 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Declare the CMS schema library in the optional recipients extraPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea:python in-progress
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
yhay81/pyropdf#1005 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
area/build-framework kind/enhancement priority/low
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
yugabyte/yugabyte-db#38826 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
sususweet/midea_auto_cloud#306 ·
Los mantenedores suelen responder en 9 días