GH-900 practice question 3 of 15

An employee needs to find all issues within organization “Avocado" containing text "404 error" and a "guacamole" label. Which of the following steps would be best to search for these results?

Full set: 144 questions
Answer options
A: Enter query org:Avocado is:issue label:guacamole "404 error" in the search bar. Correct answer
B: Go to "Avocado" organization. Select Issues under a repository. Filter issues with a "guacamole" label.
C: Enter query org:Avocado label:guacamole "404 error" in the search bar. Select "Issues" in the Filter by section.
D: Go to the Avocado organization settings. Select Repository defaults under Repository. Scroll to Repository labels and select the 'guacamole' label.
Correct Answer:
A. Enter query org:Avocado is:issue label:guacamole "404 error" in the search bar.
Explanation

This is the most efficient and accurate method. The query org:Avocado is:issue label:guacamole "404 error" uses specific search qualifiers to precisely target the required information in a single step. The org: qualifier scopes the search to the "Avocado" organization, is:issue filters for only issues, label: finds issues with the "guacamole" label, and "404 error" searches for that exact text string. This single-line query directly returns the desired results without needing further filtering or navigation.

Why Incorrect

B. This method is incorrect because it limits the search to a single repository, whereas the requirement is to search across the entire organization. It also omits the text search for "404 error".
C. While this method can eventually lead to the correct results, it is less efficient than option A. The initial query lacks the is:issue qualifier, returning results from code, pull requests, etc., which then requires an extra step to filter.
D. This option is incorrect as it describes navigating to the organization's settings to manage default repository labels, a function completely unrelated to searching for existing issues.

References

1. GitHub Docs

"About searching on GitHub." This document outlines the basic search syntax

including the use of quotes for exact phrase matching (e.g.

"404 error"). It also introduces the concept of using qualifiers to narrow searches.

Reference: See the section "Using qualifiers" and "Using quotes for phrases".

2. GitHub Docs

"Searching for issues and pull requests." This source explicitly details the qualifiers available for issue searches.

Reference: It confirms the use of is:issue to restrict results to issues and label:label-name to find issues with a specific label.

3. GitHub Docs

"Searching in repositories." This document explains how to scope a search to a specific user or organization.

Reference: It specifies the use of the org:ORGANIZATIONNAME qualifier to search within all repositories of a given organization.

Scroll to Top