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

Abierto Apto para principiantes
#65 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Ankitavasudev ya está trabajando en esto.

Desde el 12/11/2026.

  • #66 de @Ankitavasudev — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
82/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
ollama, python
Área
backend

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 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
Lenguaje dominante
Python
Estrellas
10
Forks
11
Merge medio
6 min
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de AOSSIE-Org/SkillBot

Todos los issues de AOSSIE-Org/SkillBot

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.