Skip to content
GH-900
Collaboration
medium
Question 1 of 28

How can you link a pull request to an issue so that the issue is automatically closed when the pull request is merged?

AReference the issue URL in a commit message without any keyword
BInclude a keyword such as 'Closes #42' in the pull request description
CAssign both the issue and pull request to the same milestone
DAdd a label matching the issue number to the pull request

Educational Content — CertQnA practice questions are written against official exam objectives, covering the same domains tested on the real exam. All content is original and independent — not actual exam questions, not affiliated with any certification vendor. Learn more about our content policy

Discussion

Be the first to share your understanding of this concept

⚠️ Discussion is for concept clarification only. Do not share or request actual exam questions or answers.

Sign in to join the discussion