Skip to content

Commit 59aa283

Browse files
scbeddazure-sdk
authored andcommitted
target origin repo to enable maintainer_can_modify
1 parent f224f9a commit 59aa283

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

eng/common/pipelines/templates/archetype-typespec-emitter.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ extends:
308308
- template: /eng/common/pipelines/templates/steps/login-to-github.yml
309309
parameters:
310310
TokenOwners:
311-
- azure-sdk
311+
- Azure
312312

313313
- task: UseNode@1
314314
displayName: 'Install Node.js'
@@ -360,14 +360,15 @@ extends:
360360

361361
- template: /eng/common/pipelines/templates/steps/git-push-changes.yml
362362
parameters:
363-
BaseRepoOwner: azure-sdk
363+
BaseRepoOwner: Azure
364364
TargetRepoName: $(Build.Repository.Name)
365365
BaseRepoBranch: $(branchName)
366366
CommitMsg: Regenerate repository SDK with TypeSpec build $(Build.BuildNumber)
367367
WorkingDirectory: $(Build.SourcesDirectory)
368368
ScriptDirectory: $(Build.SourcesDirectory)/eng/common/scripts
369369
# To accomodate scheduled runs and retries, we want to overwrite any existing changes on the branch
370370
PushArgs: --force
371+
AuthToken: $(GH_TOKEN)
371372

372373
- task: PowerShell@2
373374
displayName: Get generation job matrix
@@ -395,19 +396,16 @@ extends:
395396
matrix: $[dependencies.Initialize.outputs['generate_matrix.matrix']]
396397
variables:
397398
matrixArtifactsPath: $(Pipeline.Workspace)/matrix_artifacts
398-
AzureSdkRepoName: $[format('azure-sdk/{0}', split(variables['Build.Repository.Name'], '/')[1])]
399399
emitterNpmrcPath: $(Agent.TempDirectory)/${{ parameters.EmitterPackagePath }}/.npmrc
400400
steps:
401401
- checkout: self
402402

403403
- template: /eng/common/pipelines/templates/steps/login-to-github.yml
404404
parameters:
405405
TokenOwners:
406-
- azure-sdk
406+
- Azure
407407

408408
- pwsh: |
409-
git remote add azure-sdk https://github.com/$(AzureSdkRepoName).git
410-
git fetch azure-sdk $(branchName)
411409
git switch $(branchName)
412410
displayName: 'Checkout PR branch $(branchName)'
413411
@@ -439,12 +437,13 @@ extends:
439437

440438
- template: /eng/common/pipelines/templates/steps/git-push-changes.yml
441439
parameters:
442-
BaseRepoOwner: azure-sdk
440+
BaseRepoOwner: Azure
443441
TargetRepoName: $(Build.Repository.Name)
444442
BaseRepoBranch: $(branchName)
445443
CommitMsg: Update SDK code $(JobKey)
446444
WorkingDirectory: $(Build.SourcesDirectory)
447445
ScriptDirectory: $(Build.SourcesDirectory)/eng/common/scripts
446+
AuthToken: $(GH_TOKEN)
448447

449448
- job: Create_PR
450449
displayName: Create PR
@@ -548,7 +547,7 @@ extends:
548547
-RepoOwner '$(RepoOwner)'
549548
-RepoName '$(RepoName)'
550549
-BaseBranch '$(pullRequestTargetBranch)'
551-
-PROwner 'azure-sdk'
550+
-PROwner 'Azure'
552551
-PRBranch '$(branchName)'
553552
-AuthToken '$(GH_TOKEN)'
554553
-PRTitle '$(PullRequestTitle)'

0 commit comments

Comments
 (0)