Automate NOTICE.txt updates via pull request
The build-notice.yml pipeline generates an updated NOTICE.txt file but requires manual PR creation to commit changes back to the repository.
Changes:
- Added
create-pull-request.ymltemplate to automatically create PRs with updated NOTICE.txt- Branch:
eng/update-notice-txt - Force push enabled to update existing PR if present
- Commit message includes build URL for traceability
- Branch:
Implementation:
# Create a PR with the updated NOTICE.txt file
- template: /eng/common/pipelines/templates/steps/create-pull-request.yml
parameters:
PushArgs: -f
PRBranchName: eng/update-notice-txt
CommitMsg: Update NOTICE.txt from $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)
PRTitle: Update NOTICE.txt
The create-pull-request.yml template handles git authentication internally, so no separate credential configuration is needed. Follows the same pattern used in publish-cli-docs.yml for automated documentation updates.
Original prompt
This section details on the original issue you should resolve
<issue_title>Automate updating of NOTICE.txt file</issue_title> <issue_description></issue_description>
<agent_instructions>Update eng/pipelines/build-notice.yml to do some new things:
- Update the NOTICE.txt file at the root of the repo with the newly generated NOTICE.txt file. Keep the file name casing.
- Use logic like the following in the build-notice.yml to create a PR:
- template: /eng/common/pipelines/templates/steps/create-pull-request.yml parameters: PushArgs: -f PRBranchName: update-notice-txt CommitMsg: Update NOTICE.txt PRTitle: Update NOTICE.txtWhen the code is ready to review, mention me directly in a PR comment to come and verify the work. </agent_instructions>
Comments on the Issue (you are @copilot in this section)
@danieljurek This is still relevant. There may be prior art in the MCP space.
- Fixes Azure/azure-dev#339
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Hi @@Copilot. Thank you for your interest in helping to improve the Azure Developer CLI experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.