-
Notifications
You must be signed in to change notification settings - Fork 264
Automate NOTICE.txt updates via pull request #6340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: danieljurek <[email protected]>
eng/pipelines/build-notice.yml
Outdated
| # Set git credentials to enable pushing changes | ||
| - template: /eng/pipelines/templates/steps/set-git-credentials.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this. Credentials come as part of the create-pull-request.yml template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in 37169ab.
eng/pipelines/build-notice.yml
Outdated
| - template: /eng/common/pipelines/templates/steps/create-pull-request.yml | ||
| parameters: | ||
| PushArgs: -f | ||
| PRBranchName: update-notice-txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the PRBranchName eng/update-notice-txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to eng/update-notice-txt in 37169ab.
eng/pipelines/build-notice.yml
Outdated
| parameters: | ||
| PushArgs: -f | ||
| PRBranchName: update-notice-txt | ||
| CommitMsg: Update NOTICE.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include the build URL using $(System.CollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added build URL to CommitMsg in 37169ab.
…nd add build URL Co-authored-by: danieljurek <[email protected]>
The
build-notice.ymlpipeline generates an updated NOTICE.txt file but requires manual PR creation to commit changes back to the repository.Changes:
create-pull-request.ymltemplate to automatically create PRs with updated NOTICE.txteng/update-notice-txtImplementation:
The
create-pull-request.ymltemplate handles git authentication internally, so no separate credential configuration is needed. Follows the same pattern used inpublish-cli-docs.ymlfor automated documentation updates.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.