Skip to content

Commit b22cd42

Browse files
authored
Merge pull request #2199 from Azure/autogenerate
Merge Autogenerate
2 parents 91fd03b + 148c32a commit b22cd42

File tree

40 files changed

+21897
-1670
lines changed

40 files changed

+21897
-1670
lines changed

.github/workflows/generate-schemas-batch.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
SUMMARY_LOG_ARTIFACT_NAME: summary-log
1515
AUTOGENERATE_BRANCH_NAME: autogenerate
1616
AUTHOR: ${{ github.actor }}
17-
AUTHOR_EMAIL: ${{ github.actor }}@microsoft.com
17+
AUTHOR_EMAIL: <${{ github.actor }}@users.noreply.github.com>
1818
jobs:
1919
batch-0:
2020
name: Update Schemas Batch 0
@@ -185,12 +185,12 @@ jobs:
185185
working-directory: workflow-temp/azure-rest-api-specs
186186

187187
- name: Create Pull Request
188-
uses: peter-evans/create-pull-request@v3.12.0
188+
uses: peter-evans/create-pull-request@v3.12.1
189189
with:
190190
committer: GitHub <noreply@github.com>
191191
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
192192
signoff: false
193-
branch: ${{ env.AUTOGENERATE_BRANCH_NAME }}
193+
branch: ${{ env.AUTOGENERATE_BRANCH_NAME }}_tmp
194194
branch-suffix: short-commit-hash
195195
delete-branch: true
196196
title: |

generator/cmd/generateall.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ executeSynchronous(async () => {
9494
const newConfigs = await generateSchemas(readme, autoGenConfig);
9595
schemaConfigs.push(...newConfigs);
9696
pkg.result = 'succeeded';
97+
logOut(summaryLogger,
98+
`<details>
99+
<summary>Successfully generated types for base path '${basePath}'.</summary>
100+
</details>
101+
`);
97102
} catch(error) {
98103
pkg.packageName = autoGenConfig.basePath;
99104
pkg.result = 'failed';
@@ -103,7 +108,7 @@ executeSynchronous(async () => {
103108
// Use markdown formatting as this summary will be included in the PR description
104109
logOut(summaryLogger,
105110
`<details>
106-
<summary>Failed to generate types for path '${autoGenConfig.basePath}' and namespace '${autoGenConfig.namespace}'</summary>
111+
<summary>Failed to generate types for base path '${autoGenConfig.basePath}' and namespace '${autoGenConfig.namespace}'</summary>
107112
\`\`\`
108113
${error}
109114
\`\`\`
@@ -117,7 +122,7 @@ executeSynchronous(async () => {
117122
// This error usually indicates that a file has not been found (readme)
118123
logOut(summaryLogger,
119124
`<details>
120-
<summary>Failed to generate types for path '${basePath}' probably due to readme not found or due to any other file not found exception.</summary>
125+
<summary>Failed to generate types for base path '${basePath}' probably due to readme not found or due to any other file not found exception.</summary>
121126
\`\`\`
122127
${error}
123128
\`\`\`

0 commit comments

Comments
 (0)