Microsoft GitHub Foundations GH-900 Question # 9 Topic 1 Discussion
GH-900 Exam Topic 1 Question 9 Discussion:
Question #: 9
Topic #: 1
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?
A.
Enter query org:Avocado is:issue label:guacamole " 404 error " in the search bar.
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.
GitHub provides a powerful search syntax to filter and find specific issues across repositories in an organization.
Search Query Syntax:
Option A is correct because the query org:Avocado is:issue label:guacamole " 404 error " is the best way to search for all issues within the " Avocado " organization that contain the text " 404 error " and are labeled with " guacamole " . This query is precise and leverages GitHub’s advanced search capabilities.
Incorrect Options:
Option B is incorrect because it requires manual filtering in a specific repository rather than searching across the entire organization.
Option C is incorrect because selecting " Issues " in the filter by section is redundant when using the query is:issue .
Option D is incorrect because accessing organization settings to look for repository labels is not relevant to searching for issues.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit