Microsoft DevOps Engineer Expert AZ-400 Practice Question
You are configuring a GitHub Actions workflow for a repository that is linked to Azure Boards. Each time the main branch is tagged with a new semantic version (for example v2.3.0), your organization must automatically create a GitHub release whose notes list every pull request merged since the previous tag, including any Azure Boards work-item IDs mentioned in those pull-request descriptions. The solution must rely only on built-in GitHub functionality, use the default GITHUB_TOKEN, and require no external servers or custom scripts. Which implementation meets these requirements?
Insert the Azure DevOps Marketplace task "Generate Release Notes (Cross-platform)" into the workflow.
Add a step that uses the actions/create-release action and set its generate_release_notes input to true.
In a workflow step, use the GitHub CLI (gh) to run gh release create <tag> --generate-notes.
Call the GitHub Releases REST API from a shell step and manually build the notes by parsing git log output.
The GitHub CLI (gh) is pre-installed on all GitHub-hosted runners and provides a release create command. This command accepts the --generate-notes flag, which automatically creates release notes by comparing the new tag with the previous one and listing all merged pull requests in that range. If the repository is linked to Azure Boards, any work item IDs (e.g., AB#123) mentioned in those pull request descriptions will be included in the notes. The CLI automatically uses the GITHUB_TOKEN for authentication and requires contents: write permission to create releases. This solution meets all requirements, as it relies on built-in tooling and does not require third-party actions or complex custom scripting.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the GitHub CLI and why is it used in this solution?
Open an interactive chat with Bash
How does the `--generate-notes` flag work for GitHub releases?
Open an interactive chat with Bash
What permissions does the `GITHUB_TOKEN` need for this workflow?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement processes and communications
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .