Skip to content

Conversation

@Aaronontheweb
Copy link
Member

Cherry-picked this from #7791

  • Add dynamic incrementalist.baseBranch variable to pipeline templates
  • Use System.PullRequest.TargetBranch for PR builds
  • Default to 'dev' for non-PR builds
  • Update all Incrementalist commands to use --branch parameter

This allows PRs targeting version branches (e.g., v1.5) to correctly compare against their target branch instead of always using dev, avoiding unnecessary full builds.

  • Fix Incrementalist base branch detection for Azure DevOps PRs
  • Use PowerShell script to extract branch name from System.PullRequest.TargetBranch
  • Strip 'refs/heads/' prefix from target branch reference
  • Set IncrementalistBaseBranch variable dynamically at runtime
  • Update all Incrementalist commands to use the new variable

This fixes the issue where PR builds always used 'dev' as the base branch even when targeting version branches like v1.5.

…kkadotnet#7791)

* Parameterize Incrementalist base branch for Azure DevOps pipelines

- Add dynamic incrementalist.baseBranch variable to pipeline templates
- Use System.PullRequest.TargetBranch for PR builds
- Default to 'dev' for non-PR builds
- Update all Incrementalist commands to use --branch parameter

This allows PRs targeting version branches (e.g., v1.5) to correctly
compare against their target branch instead of always using dev,
avoiding unnecessary full builds.

* Fix Incrementalist base branch detection for Azure DevOps PRs

- Use PowerShell script to extract branch name from System.PullRequest.TargetBranch
- Strip 'refs/heads/' prefix from target branch reference
- Set IncrementalistBaseBranch variable dynamically at runtime
- Update all Incrementalist commands to use the new variable

This fixes the issue where PR builds always used 'dev' as the base branch
even when targeting version branches like v1.5.
@Aaronontheweb Aaronontheweb merged commit f3a3c02 into akkadotnet:dev Aug 26, 2025
11 checks passed
@Aaronontheweb Aaronontheweb deleted the incrementalist-base-branch-dev branch August 26, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant