A developer uses Copilot CLI to investigate a failing release workflow. Copilot identifies a missing environment variable and suggests a fix. The developer wants to preserve the decision and next action in the pull request instead of leaving it only in terminal output. Which option best describes the value of the final command?
copilot
# Prompt:
# Inspect the failing release workflow and explain the next safest fix.
# Copilot output:
# The release job fails because RELEASE_CHANNEL is unset.
# Decision: keep the workflow trigger unchanged.
# Next action: add RELEASE_CHANNEL as an environment variable in the release job.
gh pr comment 184 --body "Agent decision:
- RELEASE_CHANNEL is missing.
- Keep the trigger unchanged.
- Add the variable in the release job."Choose an answer
Tap an option to check your answer.
Correct answer: It converts terminal output into a durable PR artifact.
Why this is the answer
The gh pr comment command adds a comment to a pull request. In this scenario, the developer uses it to post Copilot's analysis and suggested fix directly into the PR. This makes the information a permanent part of the pull request's discussion, accessible to all collaborators and for future reference, effectively converting transient terminal output into a durable artifact within the PR. "It marks the pull request as ready for review" is incorrect because adding a comment doesn't change the PR's status. "It stores the variable as a repository secret" is incorrect; the command only adds a comment, it doesn't interact with repository secrets. "It uploads the decision log as an Actions artifact" is incorrect because gh pr comment posts to the PR, not to GitHub Actions artifacts.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed