Skip to content

[rush] Use Azure Pipelines app for version bump PRs - #6011

Merged
Bharat Middha (bmiddha) merged 8 commits into
microsoft:mainfrom
bmiddha:bharatmiddha-microsoft-azure-pipelines-pr-identity
Sep 4, 2026
Merged

[rush] Use Azure Pipelines app for version bump PRs#6011
Bharat Middha (bmiddha) merged 8 commits into
microsoft:mainfrom
bmiddha:bharatmiddha-microsoft-azure-pipelines-pr-identity

Conversation

@bmiddha

@bmiddha Bharat Middha (bmiddha) commented Sep 4, 2026

Copy link
Copy Markdown
Member

Summary

Create the Rush and Rush Stack version-bump PRs using the azure-pipelines[bot] GitHub App identity instead of the Rushbot user, and keep the generated bump branches compatible with the current published Rush release.

Details

Both bump pipelines now check out microsoft/rushstack through the existing GitHubProjects GitHub service connection. The shared stage explicitly restores $(Build.SourceVersion) before creating the bump branch, so triggers and build-SHA tagging retain their existing semantics. The persisted checkout credential is then reused for the force-push and GitHub PR API calls.

After committing the version bump, the pipeline temporarily runs rush change --bulk --bump-type none and commits the generated change files, then runs rush change --verify before packing or pushing. This handles dependency and peer-dependency range edits generated by rush version --bump, which the current published Rush exemption does not yet recognize and which caused the automated PR failures in #6009 and #6010.

The underlying Rush fix is tracked by #6012. This compatibility step remains necessary until that fix is merged, published, and selected by this repository.

How it was tested

  • Parsed the changed YAML files and checked them with Prettier.
  • Confirmed the GitHubProjects service connection uses the InstallationToken authentication scheme.
  • Compiled Azure Pipelines definitions 10 and 12 through the server-side preview API.

Check out rushstack through the GitHubProjects service connection while preserving the source directory and triggering commit.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Declare the new repository resource to the 1ES pipeline template so YAML preview and source analysis accept the checkout.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Azure Pipelines already places the sole repository checkout at Build.SourcesDirectory, so no explicit path override is needed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add none-type change files for downstream dependency range updates so automated bump PRs pass rush change --verify.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run the same change-file validation as CI before publishing artifacts or pushing the automated branch.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove the exploratory change-file generation and verification steps so this PR remains scoped to GitHub App identity.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add none-type change files for downstream dependency range updates so automated bump PRs pass rush change --verify.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run the same change-file validation as CI before publishing artifacts or pushing the automated branch.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bmiddha
Bharat Middha (bmiddha) merged commit 16c4dcd into microsoft:main Sep 4, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants