forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/virginiaho-ms/azure-rest-ap…
- Loading branch information
Showing
2,443 changed files
with
268,226 additions
and
15,365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
.github/PULL_REQUEST_TEMPLATE/sdk_configuration_template.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# SDK configuration pull request | ||
|
||
## Purpose of this PR | ||
|
||
- [ ] Make changes to the SDK configuration only when there are no modifications to the API specification, eliminating the need for an ARM or Stewardship Board API review. | ||
|
||
## Due diligence checklist | ||
|
||
To merge this PR, you **must** go through the following checklist and confirm you understood | ||
and followed the instructions by checking all the boxes: | ||
|
||
- [ ] I confirm this PR is modifying only SDK configurations, and not API related specifications. | ||
- [ ] I have reviewed and used the respective `tspconfig.yaml` templates: | ||
- [ARM tspconfig template](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.Management/tspconfig.yaml) | ||
- [Data plane tspconfig template](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml) | ||
|
||
## Getting help | ||
|
||
- First, carefully read through this PR description, from top to bottom. Fill out the `Purpose of this PR` and `Due diligence checklist`. | ||
- If you don't have permissions to remove or add labels to the PR, request `write access` per [aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositories](https://aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositories) | ||
- To understand what you must do next to merge this PR, see the `Next Steps to Merge` comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state. | ||
- For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure and https://aka.ms/ci-fix. | ||
- If the PR CI checks appear to be stuck in `queued` state, please add a comment with contents `/azp run`. | ||
This should result in a new comment denoting a `PR validation pipeline` has started and the checks should be updated after few minutes. | ||
- If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: '0.2' | ||
import: | ||
- ../cspell.yaml | ||
words: | ||
- azsdk | ||
- pwsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
name: SDK Suppressions | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- RPSaaSMaster | ||
- release* | ||
|
||
jobs: | ||
process-sdk-suppressions-labels: | ||
name: Sdk Suppressions | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
# Required since "HEAD^" is passed to Get-ChangedFiles | ||
fetch-depth: 2 | ||
|
||
- name: Setup Node and run `npm ci` | ||
uses: ./.github/actions/setup-node-npm-ci | ||
|
||
- name: Get GitHub PullRequest Changed Files | ||
shell: pwsh | ||
id: get-changedFiles | ||
run: | | ||
. eng/scripts/ChangedFiles-Functions.ps1 | ||
$changedFiles = @(Get-ChangedFiles) | ||
$changedFilesArray = $changedFiles -split ' ' | ||
$yamlFilesArray = $changedFilesArray | Where-Object { $_ -match 'sdk-suppressions\.yaml$' } | ||
$yamlFiles = $yamlFilesArray -join ' ' | ||
echo "PR Changed sdk-suppressions.yaml files: $yamlFiles" | ||
Add-Content -Path $env:GITHUB_OUTPUT -Value "changedFiles=$yamlFiles" | ||
- name: Get GitHub PullRequest Context | ||
uses: actions/github-script@v7 | ||
id: fetch-pullRequest-context | ||
with: | ||
script: | | ||
const pr = context.payload.pull_request; | ||
if (!pr) { | ||
throw new Error("This workflow must run in the context of a pull request."); | ||
} | ||
console.log("This action trigger by ", context.eventName); | ||
core.setOutput("prLabels", pr.labels.map(label => label.name)); | ||
result-encoding: string | ||
|
||
- name: Run Get suppressions label script | ||
id: run-suppressions-script | ||
env: | ||
OUTPUT_FILE: "output.json" | ||
GITHUB_PULL_REQUEST_CHANGE_FILES: ${{ steps.get-changedFiles.outputs.changedFiles }} | ||
GITHUB_PULL_REQUEST_LABELS: ${{ steps.fetch-pullRequest-context.outputs.prLabels }} | ||
run: | | ||
node eng/tools/sdk-suppressions/cmd/sdk-suppressions-label.js HEAD^ HEAD "$GITHUB_PULL_REQUEST_CHANGE_FILES" "$GITHUB_PULL_REQUEST_LABELS" | ||
OUTPUT=$(cat $OUTPUT_FILE) | ||
echo "Script output labels: $OUTPUT" | ||
labelsToAdd=$(echo "$OUTPUT" | sed -n 's/.*"labelsToAdd":\[\([^]]*\)\].*/\1/p' | tr -d '" ') | ||
labelsToRemove=$(echo "$OUTPUT" | sed -n 's/.*"labelsToRemove":\[\([^]]*\)\].*/\1/p' | tr -d '" ') | ||
for label in $(echo $labelsToAdd | tr ',' '\n'); do | ||
echo "Label to add: $label" | ||
echo "$label=true" >> $GITHUB_OUTPUT | ||
done | ||
for label in $(echo $labelsToRemove | tr ',' '\n'); do | ||
echo "Label to remove: $label" | ||
echo "$label=false" >> $GITHUB_OUTPUT | ||
done | ||
# No Action or Add/Remove label according to step run-suppressions-script output | ||
# e.g. | ||
# If the output of the step does not include the BreakingChange-Go-Sdk-Suppression, no action will be taken. | ||
# If the step's output is "BreakingChange-Go-Sdk-Suppression='true'", the label "BreakingChange-Go-Sdk-Suppression" will be applied to the PR. | ||
# If the step's output is "BreakingChange-Go-Sdk-Suppression='false'", the label "BreakingChange-Go-Sdk-Suppression" will be removed from the PR. | ||
- uses: ./.github/actions/add-label-artifact | ||
name: Upload artifact with results-go | ||
if: ${{ steps.run-suppressions-script.outputs.BreakingChange-Go-Sdk-Suppression }} | ||
with: | ||
name: "BreakingChange-Go-Sdk-Suppression" | ||
value: "${{ steps.run-suppressions-script.outputs.BreakingChange-Go-Sdk-Suppression == 'true' }}" | ||
|
||
- uses: ./.github/actions/add-label-artifact | ||
name: Upload artifact with results java | ||
if: ${{ steps.run-suppressions-script.outputs.BreakingChange-Java-Sdk-Suppression }} | ||
with: | ||
name: "BreakingChange-Java-Sdk-Suppression" | ||
value: "${{ steps.run-suppressions-script.outputs.BreakingChange-Java-Sdk-Suppression == 'true' }}" | ||
|
||
- uses: ./.github/actions/add-label-artifact | ||
name: Upload artifact with results js | ||
if: ${{ steps.run-suppressions-script.outputs.BreakingChange-JavaScript-Sdk-Suppression }} | ||
with: | ||
name: "BreakingChange-JavaScript-Sdk-Suppression" | ||
value: "${{ steps.run-suppressions-script.outputs.BreakingChange-JavaScript-Sdk-Suppression == 'true' }}" | ||
|
||
- uses: ./.github/actions/add-label-artifact | ||
name: Upload artifact with results python | ||
if: ${{ steps.run-suppressions-script.outputs.BreakingChange-Python-Sdk-Suppression }} | ||
with: | ||
name: "BreakingChange-Python-Sdk-Suppression" | ||
value: "${{ steps.run-suppressions-script.outputs.BreakingChange-Python-Sdk-Suppression == 'true' }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: SpellCheck - All | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- RPSaaSMaster | ||
|
||
schedule: | ||
# Run every day at 12:06 UTC | ||
- cron: "6 12 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
spellcheck: | ||
name: SpellCheck | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Run spelling check | ||
run: | | ||
./eng/common/spelling/Invoke-Cspell.ps1 ` | ||
-ScanGlobs '**' ` | ||
-CSpellConfigPath './cspell.json' ` | ||
-SpellCheckRoot (Resolve-Path specification) | ||
shell: pwsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: SpellCheck | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
spellcheck: | ||
name: SpellCheck | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Run spelling check | ||
run: | | ||
./eng/common/scripts/check-spelling-in-changed-files.ps1 ` | ||
-CSpellConfigPath 'cspell.json' ` | ||
-SourceCommittish HEAD ` | ||
-TargetCommittish HEAD^ ` | ||
-SpellCheckRoot (Resolve-Path specification) ` | ||
-ExitWithError | ||
if ($LASTEXITCODE) { | ||
Write-Host "Spelling errors found in changed files. See https://aka.ms/ci-fix#spell-check" | ||
exit $LASTEXITCODE | ||
} | ||
shell: pwsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.