cyberark / bash-lib

Library for bash utility methods and tools
Apache License 2.0
660 stars 24 forks source link

Multiple build failure issues returned #42

Closed hughsaunders closed 4 years ago

hughsaunders commented 4 years ago

Summary

bl_hub_issue_number_for_title returns multiple issue numbers when there are multiple issues with matching titles. This is a problem when l_hub_comment_or_create_issue is attempting to find the correct issue for adding comments to.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Clone and cd to a repo that has multiple issues with the same title
  2. run bl_hub_issue_number_for_title title
  3. Note that multiple issue numbers are returned

Expected Results

bl_hub_issue_number_for_title should return a single issue number

Actual Results (including error logs, if applicable)

Multiple issue numbers are returned.

Reproducible

Version/Tag number

v2.0.3

Environment setup

Jenkins & local dev