File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 99
99
$Title = "Migrate ${{ parameters.ServiceName }} from generation to ${{ parameters.TargetBranch }}"
100
100
$HeadBranch = "codegen/${{ parameters.ServiceName }}"
101
101
$BaseBranch = "${{ parameters.TargetBranch }}"
102
- $Description = "Migrate ${{ parameters.ServiceName }} from generation to ${{ parameters.TargetBranch }}"
102
+ $SourceBranch = "$(Build.SourceBranch)"
103
+ $SourceBranch = $BaseBranch.Replace("refs/heads/", "")
104
+ $Description = "Migrate ${{ parameters.ServiceName }} from $SourceBranch to ${{ parameters.TargetBranch }}"
103
105
./tools/Github/CreatePR.ps1 -Title $Title -HeadBranch $HeadBranch -BaseBranch $BaseBranch -BotAccessToken $(BotAccessToken) -Description $Description
104
106
displayName: Create PR to main branch
You can’t perform that action at this time.
0 commit comments