ankitpokhrel / ankitpokhrel/jira-cli

--plain should not return an error if there are no matching issues

Abierto
#883 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
6k
Forks
413
Merge medio
2 d 3 h
PR fusionados (30 d)
1

Descripción

using
` jira issue list`
to search for issues returns error code 1 no matter if the command fails for any technical issues (DNS error, host unreachable etc) or if the command runs successfully but there are no queries matching the search string.

To be able to properly use the command in a wrapper script, jira-cli should return no error if there is no issues matching the query, it's just that there are issue... not an error.
Or at least, distinguish a failure in connecting and getting the issues from a legitimate, but empty, answer, by using a different return code.

Thanks,

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.