Skip to content

Commit de3a9fb

Browse files
committed
refactor: remove isCopilotGeneration parameter from generation templates
1 parent c8821e6 commit de3a9fb

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

.azure-pipelines/generation-pipeline.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,6 @@ stages:
798798
customArguments: "-b -i '**/copilot/**'" # Enable the backing store, include only copilot paths
799799
cleanMetadataFolder: $(cleanOpenAPIFolderBeta)
800800
pathExclusionArguments: ''
801-
isCopilotGeneration: true
802801
languageSpecificSteps:
803802
- template: generation-templates/dotnet-kiota.yml
804803
parameters:
@@ -832,7 +831,6 @@ stages:
832831
cleanMetadataFolder: $(cleanOpenAPIFolderBeta)
833832
commitMessagePrefix: "feat(generation): update request builders and models for python beta"
834833
pathExclusionArguments: ''
835-
isCopilotGeneration: true
836834
languageSpecificSteps:
837835
- template: generation-templates/python.yml
838836
parameters:
@@ -866,7 +864,6 @@ stages:
866864
customArguments: "-b -i '**/copilot/**'" # Enable the backing store, include only copilot paths
867865
cleanMetadataFolder: $(cleanOpenAPIFolderBeta)
868866
pathExclusionArguments: ''
869-
isCopilotGeneration: true
870867
languageSpecificSteps:
871868
- template: generation-templates/ccs-typescript-sdk.yml
872869
parameters:

.azure-pipelines/generation-templates/language-generation-kiota.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ parameters:
4040
type: boolean
4141
displayName: Generate PR after publish changes?
4242

43-
- name: isCopilotGeneration
44-
default: false
45-
type: boolean
46-
4743
- name: customArguments
4844
type: string
4945
default: ''
@@ -64,7 +60,6 @@ steps:
6460
- template: set-up-for-generation-kiota.yml
6561
parameters:
6662
cleanMetadataFolder: ${{ parameters.cleanMetadataFolder }}
67-
isCopilotGeneration: ${{ parameters.isCopilotGeneration }}
6863
downloadSteps:
6964
- template: download-kiota.yml
7065

.azure-pipelines/generation-templates/set-up-for-generation-kiota.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ parameters:
66
default:
77
- pwsh: |
88
Write-Error "No download step is provided"
9-
- name: isCopilotGeneration
10-
type: boolean
119
1210
steps:
1311
- template: set-user-config.yml
@@ -30,24 +28,21 @@ steps:
3028
fetchDepth: 1
3129
persistCredentials: true
3230
submodules: recursive
33-
condition: ${{ eq(parameters.isCopilotGeneration, true) }}
3431

3532
- pwsh: |
3633
md $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi
3734
md $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi
3835
Copy-Item -Path $(Build.SourcesDirectory)/Agents-M365Copilot/openapi/ccs-beta-review-openapi.yml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi/openapi.yaml
3936
Copy-Item -Path $(Build.SourcesDirectory)/Agents-M365Copilot/openapi/ccs-beta-review-openapi.yml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi/openapi.yaml
4037
displayName: Move Custom CCS metadata to expected location
41-
condition: ${{ eq(parameters.isCopilotGeneration, true) }}
42-
4338

4439
- pwsh: |
4540
md $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi
4641
md $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi
4742
Move-Item -Path $(Build.SourcesDirectory)/msgraph-metadata/openapi/v1.0/openapi.yaml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi/
4843
Move-Item -Path $(Build.SourcesDirectory)/msgraph-metadata/openapi/beta/openapi.yaml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi/
4944
displayName: Move metadata to expected location
50-
condition: and(or(eq(variables.skipMetadataCaptureAndClean, true), eq(variables.skipOpenApiCaptureAndClean, true)), ${{ eq(parameters.isCopilotGeneration, false) }})
45+
condition: or(eq(variables.skipMetadataCaptureAndClean, true), eq(variables.skipOpenApiCaptureAndClean, true))
5146

5247
# if capture and clean step is not skipped
5348
# then download the artifact from capture and clean steps
@@ -59,5 +54,5 @@ steps:
5954
downloadType: 'single'
6055
artifactName: ${{ parameters.cleanMetadataFolder }}
6156
downloadPath: '$(Build.SourcesDirectory)/msgraph-metadata'
62-
condition: and(eq(variables.skipMetadataCaptureAndClean, false), eq(variables.skipOpenApiCaptureAndClean, false), ${{ eq(parameters.isCopilotGeneration, false) }})
57+
condition: and(eq(variables.skipMetadataCaptureAndClean, false), eq(variables.skipOpenApiCaptureAndClean, false))
6358
displayName: Downloading metadata from artifacts

0 commit comments

Comments
 (0)