GitHub CLI label list search command returning unusual matches #177597
Replies: 3 comments 3 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
Hello @gilzow , Quiz: If a repository has 5 labels, and two contain the substring “bug”, what will gh label list --search bug return? 🤔 Hint: The CLI performs substring matching. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Created an issue in the CLI repo, but asking here as well.
I'm using the github cli inside of a workflow job. Specifically, using the cli to search for a label and if the label doesn't exist, create it.
Specific
ghcommand isUp until about a week ago, this returned the correct label "markdown/prose". However, as of late last week, it started returning TWO labels, one of which makes no sense.
According to the help for
--searchit searches both name and description, but the description for both matches is empty.I can replicate this behavior by misspelling the search phrase, or by trying other search strings that should match a given number of labels but the actual results contains results that do not contain the search phrase.
Anyone have any ideas what is going on or what I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions