Skip to content

Commit

Permalink
Merge branch 'main' into Aman-Jain-14/auto-export-spec-24-07-01
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-Jain-14 authored Oct 12, 2024
2 parents b8783ed + 15b16d1 commit 535d83f
Show file tree
Hide file tree
Showing 4,150 changed files with 675,134 additions and 18,187 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .azure-pipelines/azure-pipelines-data-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ schedules:
always: true

pool:
name: azsdk-pool-mms-ubuntu-2204-general
vmImage: 'Ubuntu-22.04'

variables:
Expand Down
8 changes: 4 additions & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
/specification/deviceregistry/ @marcodalessandro @rohankhandelwal @riteshrao

# PRLabel: %Device Update
/specification/deviceupdate/data-plane/ @mikekistler @Azure/api-stewardship-board
/specification/deviceupdate/data-plane/ @Azure/api-stewardship-board

/specification/documentdb/ @dmakwana

Expand Down Expand Up @@ -142,7 +142,7 @@
/specification/keyvault/ @heaths @randallilama @jlichwa

# PRLabel: %Load Test Service
/specification/loadtestservice/data-plane/ @mikekistler @Azure/api-stewardship-board
/specification/loadtestservice/data-plane/ @Azure/api-stewardship-board

# PRLabel: %Logic App
/specification/logic/ @pankajsn @tonytang-microsoft-com
Expand Down Expand Up @@ -182,7 +182,7 @@
/specification/powerbidedicated/ @tarostok

# PRLabel: %Purview
/specification/purview/data-plane @mikekistler @Azure/api-stewardship-board
/specification/purview/data-plane @Azure/api-stewardship-board

# PRLabel: %PostgreSQL
/specification/postgresql/** @Azure/azure-sdk-write-postgresql
Expand Down Expand Up @@ -288,4 +288,4 @@
/.github/ @weshaggard @mikeharder @benbp
/eng/ @weshaggard @mikeharder @benbp
/scripts/ @weshaggard @mikeharder
/.github/CODEOWNERS @Azure/azure-sdk-eng
/.github/CODEOWNERS @Azure/azure-sdk-eng
7 changes: 6 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ updates:
schedule:
interval: "daily"
allow:
- dependency-name: "@azure-tools/typespec-client-generator-cli"
- dependency-name: "@azure-tools/*"
- dependency-name: "@typespec/*"
groups:
typespec:
patterns:
- "*"
55 changes: 33 additions & 22 deletions .github/workflows/protected-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,44 @@ name: Protected Files

on: pull_request

env:
# Users allowed to edit protected files without failing check
user-allowed: ${{ github.event.pull_request.user.login == 'azure-sdk' || github.event.pull_request.user.login == 'dependabot[bot]' }}

jobs:
protected-files:
name: Protected Files

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
# Required since "HEAD^" is passed to Get-ChangedFiles
fetch-depth: 2

- name: Detect changes to protected files
run: |
. eng/scripts/ChangedFiles-Functions.ps1
$protectedFiles = @("package.json", "package-lock.json")
$changedFiles = @(Get-ChangedFiles -baseCommitish HEAD^ -targetCommitish HEAD -diffFilter "")
$matchedFiles = @($protectedFiles | Where-Object { $changedFiles -contains $_})
if ($matchedFiles.Count -gt 0) {
foreach ($file in $matchedFiles) {
Write-Output "::error file=$file::File '$file' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections."
# Since check is required, the job must pass instead of being skipped
- name: User allowed
if: ${{ env.user-allowed == 'true' }}
run: echo "Account '${{ github.event.pull_request.user.login }}' is allowed to update protected files"

- uses: actions/checkout@v4
if: ${{ env.user-allowed != 'true' }}
with:
# Required since "HEAD^" is passed to Get-ChangedFiles
fetch-depth: 2

- name: Detect changes to protected files
if: ${{ env.user-allowed != 'true' }}
run: |
. eng/scripts/ChangedFiles-Functions.ps1
$protectedFiles = @("package.json", "package-lock.json")
$changedFiles = @(Get-ChangedFiles -baseCommitish HEAD^ -targetCommitish HEAD -diffFilter "")
$matchedFiles = @($protectedFiles | Where-Object { $changedFiles -contains $_})
if ($matchedFiles.Count -gt 0) {
foreach ($file in $matchedFiles) {
Write-Output "::error file=$file::File '$file' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections."
}
exit 1
}
else {
Write-Output "No changes to protected files: [$($protectedFiles -join ', ')]"
}
exit 1
}
else {
Write-Output "No changes to protected files: [$($protectedFiles -join ', ')]"
}
shell: pwsh
shell: pwsh
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "Azure OpenAPI"

pool:
name: azsdk-pool-mms-ubuntu-2004-general
vmImage: 'Ubuntu-20.04'

trigger:
Expand Down
Loading

0 comments on commit 535d83f

Please sign in to comment.