Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-signalr] Azure SignalR - Adding new api-version 2024-01-01-preview #9767

Closed
wants to merge 90 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
fbf42d8
Add dotnet-api product slug to sample metadata script (#39138)
azure-sdk Mar 8, 2024
0952442
Sync .github/workflows directory with azure-sdk-tools for PR 7845 (#3…
azure-sdk Mar 8, 2024
5cfa419
Update Prepare-Release.ps1 to handle only one previous release (#39139)
azure-sdk Mar 8, 2024
17370af
[OpenAI] Ennhance Streaming ChatCompletion documentations and samples…
mssfang Mar 8, 2024
08f3408
add 4.53.3-hotfix changelog (#39142)
xinlian12 Mar 8, 2024
886a986
Update github-event-processor version (#39153)
azure-sdk Mar 11, 2024
83e9911
Update GitHubEventProcessor to 20240311.2 (#39156)
azure-sdk Mar 11, 2024
7dc175d
[CODEOWNERS] Fix duplicate entries for messaging (#39155)
jsquire Mar 11, 2024
b283386
Search March 2024 Preview (#38998)
jairmyree Mar 11, 2024
3c2ca02
Prepare Monitor Ingestion March 2024 Patch Release (Manual) (#39143)
jairmyree Mar 11, 2024
21e4d0f
Support `url.query` (#39133)
trask Mar 11, 2024
f9959d3
Fix CODEOWNER formatting (#39158)
alzimmermsft Mar 11, 2024
c11f1aa
Prepare to release beta.21 (#39159)
heyams Mar 11, 2024
44c019c
Skip env processing on matrix import step (#39160)
azure-sdk Mar 11, 2024
e0fc329
Prepare Search March 2024 Beta Release (#39161)
jairmyree Mar 11, 2024
0b0e225
New ApiCenter events (#39005)
billwert Mar 11, 2024
c41fbec
Azure Monitor Query: Update to latest GA service version (#39051)
srnagar Mar 11, 2024
aaa2fb5
Prepare March 2023 EventGrid Release (#39167)
billwert Mar 12, 2024
569c3f0
Add Spotbug exception for AutoRest generated files (#39098)
skapur12 Mar 12, 2024
b9b26d2
aligning code owners of SB with EH (#39168)
anuchandy Mar 12, 2024
d1560b2
Increment package versions for cosmos releases (#39081)
azure-sdk Mar 12, 2024
1d3a2cb
eng, auto-patch for azure-messaging-webpubsub-client (#39113)
weidongxu-microsoft Mar 12, 2024
bb072ec
azure-cosmos-spark: release 2024-03-12 - Reducing noisy logs in WARN …
FabianMeiswinkel Mar 12, 2024
1f727e9
[Automation] Generate Fluent Lite from storageactions#package-2023-01…
azure-sdk Mar 12, 2024
6fa7e3f
Version update for EventGrid March 2024 release (#39186)
billwert Mar 12, 2024
4fb3af1
Set version of org.apache.maven.plugins:maven-gpg-plugin in publish s…
JimSuplizio Mar 12, 2024
42be6f4
Turn on EnforceMaxLifeOfIssues (#39171)
ronniegeraghty Mar 12, 2024
44cc51c
Increment package versions for monitor releases (#39164)
azure-sdk Mar 12, 2024
4ed10f7
Increment package versions for search releases (#39165)
azure-sdk Mar 12, 2024
42767d7
Incrementing Versions for Tables Release (Cherry-Pick) (#39191)
jairmyree Mar 12, 2024
25765b9
Upgrade Spring Cloud and Spring Framework version (#39179)
Netyyyy Mar 13, 2024
3e0e760
Increment package versions for resourcemanager cosmosdb releases (#39…
v-hongli1 Mar 13, 2024
8e8d797
Increment package versions for monitor releases (#39163)
azure-sdk Mar 13, 2024
f8b369f
Preparing Tables March 2024 Beta Release (#39196)
jairmyree Mar 13, 2024
9cfe00a
APIView - send package version param for automatic API review request…
azure-sdk Mar 13, 2024
b806075
[Automation] Generate Fluent Lite from security#package-composite-v3 …
azure-sdk Mar 14, 2024
e0ffdd2
[Automation] Generate Fluent Lite from redisenterprise#package-2023-1…
azure-sdk Mar 14, 2024
14a6594
Increment package versions for security releases (#39209)
azure-sdk Mar 14, 2024
cdd1f5d
[Automation] Generate Fluent Lite from datafactory#package-2018-06 (#…
azure-sdk Mar 14, 2024
f0c6a58
Increment package versions for datafactory releases (#39211)
azure-sdk Mar 14, 2024
3eb3ce8
Increment package versions for redisenterprise releases (#39210)
azure-sdk Mar 14, 2024
6c983ab
KafkaV2SinkConnector (#38973)
xinlian12 Mar 14, 2024
0020a98
Increment package versions for servicebus 7.15.2 releases (#39216)
anuchandy Mar 14, 2024
98ca97f
Use same handling as sparse-checkout to attempt to fix memory tests (…
alzimmermsft Mar 14, 2024
58d6d74
Sync eng/common directory with azure-sdk-tools for PR 7877 (#39222)
azure-sdk Mar 14, 2024
568540a
Update the Number Lookup preview to include Number Format features (#…
ericasp16 Mar 14, 2024
e13e0de
[Core] Bugfix for ContentType, text/event-stream match (#39204)
mssfang Mar 14, 2024
2ee02c4
Updating parameter description (#39198)
ibrandes Mar 14, 2024
54c199d
Update pom file version scanner (#39221)
JimSuplizio Mar 14, 2024
461c975
Update Msal Java Dependency (#39228)
g2vinay Mar 14, 2024
c61c52b
Update versions after Identity OOB (#39236)
billwert Mar 15, 2024
4e08690
[Automation] Generate Fluent Lite from postgresqlhsc#package-preview-…
azure-sdk Mar 15, 2024
e865b2e
Increment package versions for cosmosdbforpostgresql releases (#39244)
azure-sdk Mar 15, 2024
0d00c08
[Automation] Generate Fluent Lite from quantum#package-2023-11-13-pre…
azure-sdk Mar 15, 2024
7eddb69
Increment package version after release of com.azure.resourcemanager …
azure-sdk Mar 15, 2024
29a8702
[Automation] Generate Fluent Lite from chaos#package-2024-01 (#39248)
azure-sdk Mar 15, 2024
e53e0c3
Increment package versions for chaos releases (#39249)
azure-sdk Mar 15, 2024
bb569c3
[Automation] Generate Fluent Lite from newrelic#package-2024-01-01 (#…
azure-sdk Mar 15, 2024
f9f9f5e
Increment package versions for newrelicobservability releases (#39250)
azure-sdk Mar 15, 2024
6a9ba74
[Automation] Generate Fluent Lite from notificationhubs#package-previ…
azure-sdk Mar 15, 2024
103148a
Increment package versions for notificationhubs releases (#39253)
azure-sdk Mar 15, 2024
b52bb0c
Service Bus version updates post 7.16.0-beta.1 release with azure-xml…
anuchandy Mar 15, 2024
695830a
Sync eng/common directory with azure-sdk-tools for PR 7892 (#39256)
azure-sdk Mar 15, 2024
9e789e6
Migrate java pipelines to 1es pipeline templates (#39243)
benbp Mar 16, 2024
a9b43c5
***NO_CI*** Mass convert live tests to use extends
benbp Mar 15, 2024
0b775bc
[Automation] Generate Fluent Lite from communication#package-2023-04 …
azure-sdk Mar 18, 2024
b3322e3
Update BulkWriter.scala (#39260)
FabianMeiswinkel Mar 18, 2024
c875b71
[Automation] Generate Fluent Lite from fist#package-2024-01-10 (#39267)
azure-sdk Mar 18, 2024
1e3aa98
Increment package versions for tables releases (#39203)
azure-sdk Mar 18, 2024
66e131a
Increment package version after release of com.azure azure-ai-documen…
azure-sdk Mar 18, 2024
afa375b
Fix dev version always being set (#39272)
alzimmermsft Mar 18, 2024
afb004a
Create api review script changes to add a param to set release tag (#…
azure-sdk Mar 18, 2024
ae94281
Change log for hotfix releases (4.45.3-hotfix, 4.48.3-hotfix, 4.53.4-…
jeet1995 Mar 18, 2024
b7d9b64
Azure Monitor Query: Update method names (#39225)
srnagar Mar 18, 2024
f677b14
Ensure artifact filter function gets array result from get-childitem …
praveenkuttappan Mar 18, 2024
51326da
remove all references to docker (#39278)
azure-sdk Mar 18, 2024
71e7a8f
azure-cosmos-spark release 4.28.4 (#39274)
FabianMeiswinkel Mar 19, 2024
01522dd
channelAcquisitionExceptionForWrites (#39255)
xinlian12 Mar 19, 2024
6012086
Increment package versions for iotfirmwaredefense releases (#39290)
azure-sdk Mar 19, 2024
2556158
Increment package versions for communication releases (#39291)
azure-sdk Mar 19, 2024
3fe4e4e
[Automation] Generate Fluent Lite from mobilenetwork#package-2024-02 …
azure-sdk Mar 19, 2024
7ca9073
Fix beta package publishing (#39230)
ericasp16 Mar 19, 2024
0c51d3a
Bump the proxy version to the last one resolving mac timeout issues (…
azure-sdk Mar 19, 2024
5f7abaa
spring live test VM image (#39292)
xinlian12 Mar 19, 2024
4adaa21
[OpenAI] Added a new overload `getChatCompletionsStreamWithResponse` …
mssfang Mar 19, 2024
ed1b10b
Repair `eventgrid` ci job (#39300)
scbedd Mar 19, 2024
991cad5
Add credscan suppressions file to common path for publish daily feed …
benbp Mar 19, 2024
9ffe6d9
Increment package versions for cosmos releases (#39289)
azure-sdk Mar 20, 2024
4668df4
Increment package versions for mobilenetwork releases (#39305)
azure-sdk Mar 20, 2024
83def49
CodeGen from PR 28259 in Azure/azure-rest-api-specs
Mar 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1,118 changes: 565 additions & 553 deletions .github/CODEOWNERS

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/event-processor.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"IdentifyStalePullRequests": "On",
"CloseAddressedIssues": "On",
"LockClosedIssues": "On",
"EnforceMaxLifeOfIssues": "Off"
"EnforceMaxLifeOfIssues": "On"
}
70 changes: 64 additions & 6 deletions .github/workflows/event-processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,29 @@ on:
permissions: {}

jobs:
event-handler:
# This event requires the Azure CLI to get the LABEL_SERVICE_API_KEY from the vault.
# Because the azure/login step adds time costly pre/post Az CLI commands to any every job
# it's used in, split this into its own job so only the event that needs the Az CLI pays
# the cost.
event-handler-with-azure:
permissions:
issues: write
pull-requests: write
# For OIDC auth
id-token: write
contents: read
name: Handle ${{ github.event_name }} ${{ github.event.action }} event
name: Handle ${{ github.event_name }} ${{ github.event.action }} event with azure login
runs-on: ubuntu-latest
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }}
steps:
- name: 'Az CLI login'
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }}
uses: azure/login@v1.5.1
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: 'Run Azure CLI commands'
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }}
run: |
LABEL_SERVICE_API_KEY=$(az keyvault secret show \
--vault-name issue-labeler \
Expand All @@ -55,7 +58,7 @@ jobs:
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20240229.2
--version 1.0.0-dev.20240311.2
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
Expand Down Expand Up @@ -94,3 +97,58 @@ jobs:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LABEL_SERVICE_API_KEY: ${{ env.LABEL_SERVICE_API_KEY }}

event-handler:
permissions:
issues: write
pull-requests: write
name: Handle ${{ github.event_name }} ${{ github.event.action }} event
runs-on: ubuntu-latest
if: ${{ github.event_name != 'issues' || github.event.action != 'opened' }}
steps:
# To run github-event-processor built from source, for testing purposes, uncomment everything
# in between the Start/End-Build From Source comments and comment everything in between the
# Start/End-Install comments
# Start-Install
- name: Install GitHub Event Processor
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20240311.2
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
# End-Install

# Testing checkout of sources from the Azure/azure-sdk-tools repository
# The ref: is the SHA from the pull request in that repository or the
# refs/pull/<PRNumber>/merge for the latest on any given PR. If the repository
# is a fork eg. <User>/azure-sdk-tools then the repository down below will
# need to point to that fork
# Start-Build
# - name: Checkout tools repo for GitHub Event Processor sources
# uses: actions/checkout@v3
# with:
# repository: Azure/azure-sdk-tools
# path: azure-sdk-tools
# ref: <refs/pull/<PRNumber>/merge> or <sha>

# - name: Build and install GitHubEventProcessor from sources
# run: |
# dotnet pack
# dotnet tool install --global --prerelease --add-source ../../../artifacts/packages/Debug Azure.Sdk.Tools.GitHubEventProcessor
# shell: bash
# working-directory: azure-sdk-tools/tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor
# End-Build

- name: Process Action Event
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
EOF
github-event-processor ${{ github.event_name }} payload.json
shell: bash
env:
# This is a temporary secret generated by github
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 6 additions & 4 deletions .github/workflows/scheduled-event-processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: GitHub Scheduled Event Processor

on:
schedule:
# These are generated/confirmed using https://crontab.cronhub.io/
# Close stale issues, runs every day at 1am - CloseStaleIssues
- cron: '0 1 * * *'
# Identify stale pull requests, every Friday at 5am - IdentifyStalePullRequests
Expand All @@ -14,9 +15,10 @@ on:
- cron: '30 4,10,16,22 * * *'
# Lock closed issues, every 6 hours at 05:30 AM, 11:30 AM, 05:30 PM and 11:30 PM - LockClosedIssues
- cron: '30 5,11,17,23 * * *'
# Enforce max life of issues, every Monday at 10:00 AM - EnforceMaxLifeOfIssues
# Enforce max life of issues, every M,W,F at 10:00 AM PST - EnforceMaxLifeOfIssues
# Note: GitHub uses UTC, to run at 10am PST, the cron task needs to be 6pm (1800 hours) UTC
- cron: '0 18 * * MON'
# When scheduling for multiple days the numeric days 0-6 (0=Sunday) must be used.
- cron: '0 18 * * 1,3,5'
# This removes all unnecessary permissions, the ones needed will be set below.
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
permissions: {}
Expand All @@ -37,7 +39,7 @@ jobs:
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20240229.2
--version 1.0.0-dev.20240311.2
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
Expand Down Expand Up @@ -131,7 +133,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Enforce Max Life of Issues Scheduled Event
if: github.event.schedule == '0 18 * * MON'
if: github.event.schedule == '0 18 * * 1,3,5'
run: |
cat > payload.json << 'EOF'
${{ toJson(github.event) }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Default Assets restore directory
.assets
test-proxy.log

*.class

Expand Down Expand Up @@ -118,4 +119,4 @@ stress-test-resources.json
stress-test-addons*

# Temp typespec files
TempTypeSpecFiles/
TempTypeSpecFiles/
4 changes: 4 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"**/sdk/**/target/**",
"**/session-records/**",
"**/sdk/**/**/assets.json",
"**/sdk/**/*-matrix.json",
"**/chromedriver",
".gitignore",
"*.jar",
Expand Down Expand Up @@ -306,6 +307,7 @@
"hudha",
"hvac",
"hybridkubernetes",
"hyunwoongko",
"insights",
"intellij",
"Intellij",
Expand All @@ -320,8 +322,10 @@
"JSESSIONID",
"junitxml",
"jtoken",
"jtokkit",
"keyvault",
"kasobol",
"knuddelsgmbh",
"kube",
"kubeconfig",
"kubeconfigs",
Expand Down
2 changes: 1 addition & 1 deletion common/smoke-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.11.3</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
<version>1.11.4</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
</dependency>

<dependency>
Expand Down
10 changes: 10 additions & 0 deletions eng/CredScanSuppression.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,16 @@
],
"_justification": "Javadoc in azure resourcemanagerhybrid"
},
{
"file": [
"test-proxy.log",
],
"_justification": "Transient test file that is locked by test-proxy and should not be scanned"
},
{
"file": [
"eng/common/testproxy/dotnet-devcert.pfx",
"sdk/core/azure-core-test/target/classes/keystore.jks",
"sdk/cosmos/azure-cosmos-tests/src/test/resources/server.jks",
"sdk/cosmos/azure-cosmos-tests/src/test/resources/client.jks",
"sdk/identity/azure-identity/src/test/resources/cert-chain.pem",
Expand All @@ -64,6 +71,9 @@
"file": [
"sdk/communication/azure-communication-common-perf/src/main/java/com.azure.communication.common.perf/FakeCredentialInTest.java",
"sdk/keyvault/azure-security-keyvault-certificates/src/test/java/com/azure/security/keyvault/certificates/FakeCredentialInTest.java",
"sdk/keyvault/microsoft-azure-keyvault/src/test/resources/session-records/createCertificatePemForCertificateOperationsTest.json",
"sdk/keyvault/microsoft-azure-keyvault/src/test/resources/session-records/createSelfSignedCertificatePemForCertificateOperationsTest.json",
"sdk/resourcemanagerhybrid/azure-resourcemanager/src/test/resources/session-records/AzureResourceManagerTests.testContainerRegistry.json",
"sdk/spring/spring-cloud-azure-autoconfigure/src/test/java/com/azure/spring/cloud/autoconfigure/FakeCredentialInTest.java",
"sdk/spring/spring-cloud-azure-service/src/test/java/com/azure/spring/cloud/service/implementation/storage/FakeCredentialInTest.java",
"sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/FakeCredentialInTest.java",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ the main ServiceBusClientBuilder. -->
<suppress checks="com.azure.tools.checkstyle.checks.GoodLoggingCheck"
files="[/\\]azure-cosmos-kafka-connect[/\\]"/>
<suppress checks="com.azure.tools.checkstyle.checks.ExternalDependencyExposedCheck" files="com.azure.cosmos.kafka.connect.CosmosDBSourceConnector"/>
<suppress checks="com.azure.tools.checkstyle.checks.ExternalDependencyExposedCheck" files="com.azure.cosmos.kafka.connect.CosmosDBSinkConnector"/>

<!-- Checkstyle suppressions for resource manager package -->
<suppress checks="com.azure.tools.checkstyle.checks.ServiceClientCheck" files="com.azure.resourcemanager.*"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE"/>
</Match>

<!-- Exclude the files generated by autorest for microsoft-azure-batch and its subpackages -->
<Match>
<Package name="~com\.microsoft\.azure\.batch(\..+)?"/>
</Match>

<Match>
<Class name="com.microsoft.azure.batch.CreateTasksErrorException"/>
<Or>
Expand Down
2 changes: 1 addition & 1 deletion eng/common/pipelines/templates/steps/bypass-local-dns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ steps:
condition: |
and(
succeededOrFailed(),
contains(variables['OSVmImage'], 'ubuntu'),
or(contains(variables['OSVmImage'], 'ubuntu'),contains(variables['OSVmImage'], 'linux')),
eq(variables['Container'], '')
)
19 changes: 14 additions & 5 deletions eng/common/pipelines/templates/steps/create-apireview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,37 @@ parameters:
ArtifactPath: $(Build.ArtifactStagingDirectory)
Artifacts: []
ConfigFileDir: $(Build.ArtifactStagingDirectory)/PackageInfo
MarkPackageAsShipped: false
GenerateApiReviewForManualOnly: false
ArtifactName: 'packages'
PackageName: ''

steps:
# ideally this should be done as initial step of a job in caller template
# We can remove this step later once it is added in caller
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml

- ${{ each artifact in parameters.Artifacts }}:
# Automatic API review is generated for a package when pipeline runs irrespective of how pipeline gets triggered.
# Below condition ensures that API review is generated only for manual pipeline runs when flag GenerateApiReviewForManualOnly is set to true.
- ${{ if or(ne(parameters.GenerateApiReviewForManualOnly, true), eq(variables['Build.Reason'], 'Manual')) }}:
- task: Powershell@2
inputs:
filePath: $(Build.SourcesDirectory)/eng/common/scripts/Create-APIReview.ps1
arguments: >
-ArtifactList ('${{ convertToJson(parameters.Artifacts) }}' | ConvertFrom-Json | Select-Object Name)
-ArtifactPath ${{parameters.ArtifactPath}}
-APIViewUri $(azuresdk-apiview-uri)
-ArtifactName ${{ parameters.ArtifactName }}
-APIKey $(azuresdk-apiview-apikey)
-APILabel "Auto Review - $(Build.SourceVersion)"
-PackageName ${{artifact.name}}
-PackageName '${{parameters.PackageName}}'
-SourceBranch $(Build.SourceBranchName)
-DefaultBranch $(DefaultBranch)
-ConfigFileDir '${{parameters.ConfigFileDir}}'
-BuildId $(Build.BuildId)
-RepoName '$(Build.Repository.Name)'
-MarkPackageAsShipped $${{parameters.MarkPackageAsShipped}}
pwsh: true
workingDirectory: $(Pipeline.Workspace)
displayName: Create API Review for ${{ artifact.name}}
displayName: Create API Review
condition: >-
and(
succeededOrFailed(),
Expand Down
23 changes: 6 additions & 17 deletions eng/common/pipelines/templates/steps/git-push-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,14 @@ parameters:
SkipCheckingForChanges: false

steps:
- pwsh: |
echo "git add -A"
git add -A

echo "git diff --name-status --cached --exit-code"
git diff --name-status --cached --exit-code

if ($LastExitCode -ne 0) {
echo "##vso[task.setvariable variable=HasChanges]$true"
echo "Changes detected so setting HasChanges=true"
}
else {
echo "##vso[task.setvariable variable=HasChanges]$false"
echo "No changes so skipping code push"
}
- task: PowerShell@2
displayName: Check for changes
condition: and(succeeded(), eq(${{ parameters.SkipCheckingForChanges }}, false))
workingDirectory: ${{ parameters.WorkingDirectory }}
ignoreLASTEXITCODE: true
inputs:
pwsh: true
workingDirectory: ${{ parameters.WorkingDirectory }}
filePath: ${{ parameters.ScriptDirectory }}/check-for-git-changes.ps1
ignoreLASTEXITCODE: true

- pwsh: |
# Remove the repo owner from the front of the repo name if it exists there
Expand Down
Loading