GH-900 · Question #46
GH-900 Question #46: Real Exam Question with Answer & Explanation
The correct answer is C: CONTRIBUTING - Explains how contributors should interact with the repository, including. The new team member should refer to the CONTRIBUTING file, which outlines guidelines for reporting issues, submitting pull requests, and coding standards, ensuring they follow best practices. The contributor asking about code review responsibilities should check the CODEOWNERS fi
Question
A new team member has joined an open-source software project hosted on GitHub. They want to contribute but are unsure about the team's expectations on things like code formatting, pull request procedures, and how to report bugs effectively. At the same time, another contributor is asking which document outlines who should review changes made to specific parts of the codebase. Which of the following files should each of these contributors refer to for their specific concerns? (Choose two.)
Options
- ALICENSE - Specifies how others can legally use, modify, and distribute the code
- BREADME - Provides an overview of the project, including its purpose, installation steps, and
- CCONTRIBUTING - Explains how contributors should interact with the repository, including
- DCODEOWNERS - Identifies individuals or teams responsible for reviewing changes to certain files
Explanation
The new team member should refer to the CONTRIBUTING file, which outlines guidelines for reporting issues, submitting pull requests, and coding standards, ensuring they follow best practices. The contributor asking about code review responsibilities should check the CODEOWNERS file, as it specifies which individuals or teams are responsible for reviewing changes in particular areas of the codebase. Option C is CORRECT because the CONTRIBUTING file serves as a guide for contributors, explaining how they can get involved, the expected coding style, how to report bugs, and how to make pull requests. Option D is CORRECT because the CODEOWNERS file assigns responsibility for reviewing changes in specific files or directories to designated users or teams, which automates the review workflow in GitHub. https://docs.github.com/en/github/building-a-strong-community/setting-guidelines-for-repository- https://docs.github.com/en/repositories/managing-your-repositorys-settings-and- features/customizing-your-repository/about-code-owners https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/licensing-a- https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-readmes
Topics
Community Discussion
No community discussion yet for this question.