Skip to content

Commit

Permalink
Merge pull request #2726 from Azure/autogenerate
Browse files Browse the repository at this point in the history
Merge Autogenerate
  • Loading branch information
jorgecotillo authored Dec 27, 2022
2 parents b0c85ae + 2b17dda commit 8f7f92e
Show file tree
Hide file tree
Showing 9 changed files with 13,711 additions and 243 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/generate-schemas-batch.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Generate Schemas batch

on:
schedule:
- cron: '0 1 * * 3'
workflow_dispatch:
inputs:
api_specs_ref:
Expand Down Expand Up @@ -202,9 +204,10 @@ jobs:
committer: GitHub <[email protected]>
author: ${{ env.AUTHOR }} <${{ env.AUTHOR_EMAIL }}>
signoff: false
branch: ${{ env.AUTOGENERATE_BRANCH_NAME }}_ltst
branch: main
branch-suffix: short-commit-hash
delete-branch: true
token: ${{ secrets.GITHUB_TOKEN }}
title: |
Update Generated Schemas ${{ github.event.inputs.single_path && format('(single path: {0})', github.event.inputs.single_path) || '' }}
body: |
Expand All @@ -218,5 +221,5 @@ jobs:
Update Generated Schemas ${{ github.event.inputs.single_path && format('(single path: {0})', github.event.inputs.single_path) || '' }}
Generate schemas for ${{ steps.get_swagger_gh_uri.outputs.gh_uri }}
labels: ${{ env.AUTOGENERATE_BRANCH_NAME }}
labels: automerge
draft: false
6 changes: 6 additions & 0 deletions generator/autogenlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { postProcessor as costManagementPostProcessor } from './processors/Micro
import { postProcessor as providerHubPostProcessor } from './processors/Microsoft.ProviderHub';
import { postProcessor as mediaPostProcessor } from './processors/Microsoft.Media';
import { postProcessor as networkPostProcessor } from './processors/Microsoft.Network';
import { postProcessor as azureStackHciPostProcessor } from './processors/Microsoft.AzureStackHCI';
import { lowerCaseEquals } from './utils';

// New providers are onboarded by default. The providers listed here are the only ones **not** onboarded.
Expand Down Expand Up @@ -1101,6 +1102,11 @@ const autoGenList: AutoGenConfig[] = [
namespace: 'Microsoft.Network',
suffix: 'DnsResolver',
},
{
basePath: 'azurestackhci/resource-manager',
namespace: 'Microsoft.AzureStackHCI',
postProcessor: azureStackHciPostProcessor
},
];

export function findAutogenEntries(basePath: string): AutoGenConfig[] {
Expand Down
Loading

0 comments on commit 8f7f92e

Please sign in to comment.