Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
4c49a05
Update readme.md for latest SDK release (#24618)
thomasricci Jun 29, 2023
45cea7e
[typespec-ci] Add pr trigger for eng/tools/TypeSpecValidation (#24640)
mikeharder Jun 29, 2023
db23874
Azure OpenAI: reuse LRO response model as status polling model (#24556)
trrwilson Jun 29, 2023
0504b27
[TypeSpecValidation/ Format document (#24642)
mikeharder Jun 29, 2023
f31a209
Typespec EGv2 Clean CI (#24361)
l0lawrence Jun 29, 2023
c810578
[typespec-ci] Discard git changes (#24650)
mikeharder Jun 29, 2023
64efc48
adding mutability flag to the identity property ACS (#24477)
joannajiang112628 Jun 30, 2023
d75abbd
Add new stable API-version 2023-05-01 in Microsoft.Dataprotection (#2…
Shashank1306s Jun 30, 2023
6107f25
update (#24655)
msyyc Jun 30, 2023
4ffdb08
[TypeSpecValidation] Enable simple-git logging (#24656)
mikeharder Jun 30, 2023
9383e81
Add multi-vector support to search requests (#24614)
Careyjmac Jun 30, 2023
731790f
Fixing the API-version in ManagedServices examples (#24578)
dramuy Jun 30, 2023
c2ca67f
[Hub Generated] Review request for Microsoft.NotificationHubs to add …
kmiecikt Jul 1, 2023
2cb9c1a
fist add reademe.go.md (#24674)
Alancere Jul 3, 2023
fb32ae4
Updated correlationInterval example value (#24584)
noneumar Jul 3, 2023
0609292
add 'location' in example parameter (#24675)
kazrael2119 Jul 3, 2023
a8fb6bc
update example parameter (#24676)
kazrael2119 Jul 3, 2023
95358a2
add typescript.md for new service (#24694)
kazrael2119 Jul 4, 2023
3eac7ab
Form Recognizer v3.1 GA (2023-07-31) (#24634)
bojunehsu Jul 5, 2023
32f6423
Add 2023-06-01-preview for Web PubSub (#24268)
zackliu Jul 5, 2023
724f820
remove no-op Avocado suppressions (#24703)
Jul 5, 2023
26cac4f
Improve automation comment contents formatting (#24704)
Jul 5, 2023
d71132a
fix update example files for docs generation (#24710)
Joeleniqs Jul 6, 2023
12ad6af
FabricBot: Onboarding to GitOps.ResourceManagement because of FabricB…
microsoft-github-policy-service[bot] Jul 6, 2023
310a010
Adding formatting on save for ts files (#24646)
ckairen Jul 6, 2023
699c38e
Added devcontainer for spec writers (#24622)
raych1 Jul 7, 2023
fa5aa3e
change MongoDbAtlasDriver name (#24709)
touchdreamer Jul 7, 2023
83eb6ff
Remove annotations (#24723)
bojunehsu Jul 7, 2023
1968865
[Hub Generated] Publish private branch 'release-managedNetworkFabric-…
Mohana-Krishna-Nali Jul 7, 2023
0f39a2d
S360 Item - Missing Get SubscriptionOperations for 2021-10-01 version…
abhaygill338 Jul 7, 2023
5758cc2
add auth and fix some generated code issue in .net (#24725)
raych1 Jul 10, 2023
ba2179b
Update ci-fix cadl -> TypeSpec update (#24535)
weshaggard Jul 10, 2023
f24bd18
Update codeowners for postgresql (#24456)
ambrahma Jul 10, 2023
512e966
Add base64 formatting to contentInBase64 property (#24617)
kagbakpem Jul 10, 2023
d78cd36
[Hub Generated] Review request for Microsoft.DevCenter to add version…
chrissmiller Jul 10, 2023
8a0cb1b
[Contoso.WidgetManager] Fix formatting (#24744)
mikeharder Jul 10, 2023
95eafa5
[Maps Search] Fix the array parameters in examples (#24658)
andykao1213 Jul 10, 2023
ef477cb
[OpenAI.Inference] Adding support for OpenAI functions. (#24534)
glecaros Jul 10, 2023
26e208d
[TypeSpec Validation] Move compile from "postinstall" to "build" (#24…
mikeharder Jul 10, 2023
9975d34
Update Pricesheet properties for savingsPlan (#24708)
jayati-tehri Jul 11, 2023
3794130
elasticsan preview refresh microsoft.elasticsan 2022-12-01-preview (#…
PreetPRG Jul 11, 2023
c53808b
[Hub Generated] Publish private branch 'InbalZim-storagemover-Microso…
InbalZim Jul 11, 2023
b92fdfc
improve NR Examples (#24636)
vipray-ms Jul 11, 2023
b5cc309
update code owner (#24754)
ArcturusZhang Jul 11, 2023
f6bf655
Update readme.python.md (#24758)
msyyc Jul 11, 2023
db852c3
[TypeSpecValidation] Refactor package.json (#24756)
mikeharder Jul 11, 2023
eabc87b
workflow-bot comments: update breaking changes alternative C to point…
Jul 11, 2023
29159d1
[Communication] Job Router Public Preview v2022-07-18 (#23804)
williamzhao87 Jul 12, 2023
82639d7
[OpenAI] Rename properties for Java (#24596)
mssfang Jul 12, 2023
018905d
[TypeSpec] Upgrade to 0.46.0 (#24776)
mikeharder Jul 12, 2023
e994b93
[OpenAI] Update generated autorest (#24788)
mssfang Jul 12, 2023
099640c
Dynatrace.Observability merge to public repo (#24101)
abhargavams Jul 12, 2023
f7c77a5
Double Header Fix (#24760)
JainRah Jul 12, 2023
812c8a0
[OpenAI.Inference] Adding content filter support (#24652)
brandom-msft Jul 12, 2023
271e549
Update OpenAI PR assignment (#24794)
lmazuel Jul 12, 2023
cc23184
[typespec-ci] Automatically detect spec folders to validate (#24629)
ckairen Jul 13, 2023
a89c385
[fist] mgmt, update service name (#24781)
weidongxu-microsoft Jul 13, 2023
de68c38
[typespec-pr] Add pipeline (#24802)
mikeharder Jul 13, 2023
0691ac4
[typespec-ci] Remove path wildcard (#24804)
mikeharder Jul 13, 2023
0c958e3
Update engsys CODEOWNERS (#24808)
weshaggard Jul 13, 2023
df34995
Align optionality of content filter categories (#24819)
trrwilson Jul 13, 2023
982929d
Add spec ARM PR review workflow diagram to ARM PR description templat…
Jul 14, 2023
925ba14
Update control_plane_template.md: fix link to diagram (#24828)
Jul 14, 2023
c09314b
Added generator config for OpenAI `Functions` for the Java SDK (#24765)
jpalvarezl Jul 14, 2023
950c363
Remove repeatability support for token revocation endpoint (#24589)
maximrytych-ms Jul 14, 2023
8cf9732
Update clientTYpe (#24503)
dhu5432 Jul 14, 2023
f4135ef
[Hub Generated] Publish private branch 'dev-maintenance-Microsoft.Mai…
KalpeshChavan12 Jul 14, 2023
de95154
[package-lock.json] Add names to local dependencies (#24846)
mikeharder Jul 14, 2023
2ec9039
Update ci-fix.md: add API Doc Preview TSG (#24843)
Jul 14, 2023
3731ac6
Remove unsupported SQL Pool Rename/move operation (#24517)
kashyap-kunal Jul 15, 2023
be5b50d
Updated text for property isSoftDeleteFeatureStateEditable (#24713)
ishanjindalms Jul 17, 2023
ecd50b8
Updating folder structure for Microsoft.Migrate (#24550)
athulvijayanmsft Jul 17, 2023
59117a5
Removing readonly flag from top level object (#24848)
thomasricci Jul 17, 2023
6b045a7
[ACS JobRouter] Add misssing descriptions (#24842)
sarkar-rajarshi Jul 17, 2023
6bad115
a couple of representation tweaks for codegen (#24847)
trrwilson Jul 17, 2023
e1f8a06
Removed FunctionDefinition as custom class (#24870)
jpalvarezl Jul 17, 2023
1af2861
Update readme.python.md (#24873)
msyyc Jul 18, 2023
0bd6c36
add title in typescript.md (#24879)
kazrael2119 Jul 18, 2023
dbd87dc
Ericasp/number lookup preview (#24787)
guoqing2023 Jul 19, 2023
493aa72
Update communicationserviceschat.json (#24845)
LuChen-Microsoft Jul 19, 2023
14a3cf0
update client name in typescript.md (#24894)
kazrael2119 Jul 19, 2023
4a4fcbb
update sphere ts.md (#24895)
kazrael2119 Jul 19, 2023
8c0f9cc
Convert previous preview version Private Link to GA: 2023-06-30 for m…
xiaoxuqi-ms Jul 19, 2023
e680f9b
Fixed code owner for NRP (#24889)
MikhailTryakhov Jul 19, 2023
1e56b6f
Synapse SDK release [2023-06] (#24908)
wanyang7 Jul 20, 2023
6b0792b
Anfranci/fixstartexectemplate2 (#24885)
anandanthony Jul 20, 2023
3e6b4dd
SRP Swagger Updates for Jan23 [2023-01-01] Api Version GA (#23918)
usharma6 Jul 20, 2023
e413760
[Hub Generated] Review request for Microsoft.ContainerService/aks to …
FumingZhang Jul 20, 2023
1671d2d
Release network microsoft.network official 2023 04 01 2 (#24841)
Joanna-Yang-Art Jul 20, 2023
8958860
Adding new APIs for billing visibility in new version 2023-07-01-prev…
RheaHooda23 Jul 20, 2023
971902a
[typespec-ci] Improve change detection (#24825)
ckairen Jul 20, 2023
ddfd7ad
[typespec - pr] Validate all specs if any changes to common files (#2…
ckairen Jul 20, 2023
134eee1
[typespec-ci] Disable PR trigger (#24920)
mikeharder Jul 20, 2023
688a906
Storage STG 90 (#24915)
seanmcc-msft Jul 21, 2023
58cfc04
mgmt, java, azurestackhci, dedup name "Update" (#24924)
weidongxu-microsoft Jul 21, 2023
8dfc1c2
update parameter name in selfhelp sample (#24928)
kazrael2119 Jul 21, 2023
c79ad4f
Update TypeSpec get started guide (#24901)
allenjzhang Jul 21, 2023
5c811fc
[Hub Generated] Review request for Products to add version preview/20…
orenkaf Jul 21, 2023
f8e61c6
[Get-TypeSpec-Folders.ps1] Sort output alphabetically (#24932)
ckairen Jul 21, 2023
94144ac
[Validate-TypeSpec.ps1] Add GitClean switch (#24933)
ckairen Jul 21, 2023
0ab5469
[Hub Generated] Publish private branch 'RPSaaSMaster' - NetworkCloud …
mbashtovaya Jul 24, 2023
db80d2c
New stable api 2023-04-01 Microsoft.RedHatOpenShift (#23772)
carlowisse Jul 24, 2023
2cc9cc2
Microsoft.OperationalInsights: Correcting Total retention in days lim…
dulikvor Jul 24, 2023
ed9bde6
config reademe.go.md (#24941)
Alancere Jul 24, 2023
55fc717
[Hub Generated] Publish private branch 'main' (#23608)
kuanlu95 Jul 24, 2023
e310410
Changing operation name to match other related API for documentation …
MattEberhart-MSFTE Jul 25, 2023
324d833
Update computeRPCommon.json (#24910)
navba-MSFT Jul 25, 2023
eba34b9
add directive mobilenetwork reademe.go.md (#24942)
Alancere Jul 25, 2023
edd7863
sql readme.go.md directive (#24610)
Alancere Jul 25, 2023
7c50841
Saifahmed098 databoxedge microsoft.data box edge 2023 07 01 (#24926)
saifahmed098 Jul 25, 2023
23d8853
Update readme.python.md (#24980)
msyyc Jul 26, 2023
1239132
[ACS - Call Automation] [Beta2] Api spec for 2023-06-15-preview (#24…
fhaghbin-msft Jul 26, 2023
266dcae
Update/remove obsolete docs (#24946)
mikekistler Jul 26, 2023
085eba5
Add openapi docs for OpenAI api version 2023-07-01-preview (#24992)
bexxx Jul 27, 2023
e801f53
rename EdgeZoneStorageAccountType back to StorageAccountType to avoid…
XiaofeiCao Jul 27, 2023
c8b7a00
Adding new optional parameter to Auto Patching (#24554)
yareyes Jul 27, 2023
a88f7bc
[TypeSpec Validation] Get-TypeSpec-Folders.ps1 should only validate a…
mikeharder Jul 27, 2023
64774b0
Update readme.python.md (#25009)
msyyc Jul 27, 2023
e746418
[Hub Generated] Review request for Products to add version preview/20…
orenkaf Jul 27, 2023
1711871
fix enum mismatch (#24559)
jorgecotillo Jul 27, 2023
1873e68
Moving Markup rules API into separate file (#25003)
thramu Jul 27, 2023
320e44c
[ACS Chat] [Rest API] Added chat thread metadata and participant meta…
angiurgiu Jul 27, 2023
a32d0b2
Added missing ArchiveStatus value (#25024)
seanmcc-msft Jul 27, 2023
ab1a772
Update PrivateEndpointConnections to 2022-11-01-preview in v5 SDK (#2…
beoberha Jul 28, 2023
fe78d8f
sql readme.go.md directive (#25029)
Alancere Jul 28, 2023
4f77103
[TypeSpec Validation] Rename yml files to match pipelines (#25036)
mikeharder Jul 28, 2023
5e2f303
Update readme.python.md (#25035)
msyyc Jul 28, 2023
1fbe390
Disable creation of perimeter base rule (#24945)
vineetmimrot Jul 28, 2023
0ba477e
[Hub Generated] Review request for Microsoft.ContainerService/aks to …
FumingZhang Jul 28, 2023
68332bd
[Hub Generated] Add new api version 2023-05-01 for Microsoft.App (#24…
Juliehzl Jul 28, 2023
2a4fc9d
Revert AppGw HttpListeners alias change (#24966)
russsantos Jul 28, 2023
9025f68
[Hub Generated] Review request for Microsoft.ContainerRegistry to add…
jikuma Jul 28, 2023
00ab32d
[Hub Generated] Publish private branch 'u/michaelshikh/azure-kusto-Mi…
michaelshikh07 Jul 28, 2023
07cd724
Release sentinel 2023 07 01 preview (#24557)
xuhumsft Jul 28, 2023
f5cb376
Update documentation for Cost Details to specify Resource group and m…
prchalla1 Jul 28, 2023
6885351
Update readme.python.md (#25055)
msyyc Jul 31, 2023
0c21a10
[Hub Generated] Review request for Microsoft.Management to add versio…
alexchro93 Aug 1, 2023
fd22a81
[Hub Generated] Review request for Microsoft.LabServices to add versi…
msalaman Aug 1, 2023
8624973
TLS Default version updated to enforce TLS 1.2 (#24440)
danisala03 Aug 1, 2023
b5f5422
Update the ARM spec PR review workflow diagram (#25071)
Aug 1, 2023
14d24d1
update python config (#25074)
msyyc Aug 1, 2023
033e403
Add MicrosoftProduct to ProductType enum (#25046)
orenkaf Aug 1, 2023
80c5b33
Initial version of the code-signing dataplane service (#22310)
Jaxelr Aug 1, 2023
47c7893
[Bug-Fix] Minor change in Managed Network Fabric (#24948)
Mohana-Krishna-Nali Aug 1, 2023
458084a
Add Microsoft.StorageTasks Service | Swagger API Review (Ring 0 Servi…
HimanshuChhabra Aug 1, 2023
2d3587a
Better instructions in footnotes for the ARM spec PR review workflow …
Aug 1, 2023
51d6ec1
Updated request models for R2026 issue agrifood microsoft.ag food pla…
ryuzakil Aug 1, 2023
af92820
privateEndpointConnections and privateLinkServiceConnectionState nami…
milesizydorczak12 Aug 1, 2023
4cd9512
Add comment handler for /pr RequestMerge (#25091)
benbp Aug 1, 2023
e51cc1a
Sync expression Support From DataFactory To Synapse (#25054)
Jingshu918 Aug 2, 2023
cc92777
Update the ARM PR workflow diagram to use the `/pr RequestMerge` guid…
Aug 2, 2023
2eb9a4d
Improve ARM PR template and guidance around breaking changes (#25086)
Aug 2, 2023
d8220a0
[Hub Generated] Review request for Microsoft.Maps to add version stab…
Aug 2, 2023
978acdc
Updating ContainerStorage Swagger (#24749)
aarongalang Aug 2, 2023
58be094
Add new API version 2023-03-01 for databox (#24857)
utsrkr Aug 2, 2023
d247207
Update readme.python.md (#25136)
msyyc Aug 3, 2023
0370915
[package.json] Remove cadl packages (#25141)
mikeharder Aug 3, 2023
a81a4fd
Add ConfiguringAAD as a provisioning state (#25079)
koderjoker Aug 4, 2023
47931ba
[CODEOWNERS] Add selected root files to EngSys (#25143)
mikeharder Aug 4, 2023
8a56aa3
[HDInsight][Hilo]Add new APIs (#24940)
aim-for-better Aug 4, 2023
d9d0d67
[TypeSpec Validation] Trigger on PRs to all branches (#25174)
mikeharder Aug 4, 2023
0be0006
Add missing space (#25153)
orenkaf Aug 4, 2023
d3d9d53
Added lro-options for dataprotection 2023-01-01, 2023-05-01 (#24715)
zubairabid Aug 4, 2023
33abb04
TypeSpec Getting Started doc (#25021)
allenjzhang Aug 4, 2023
0baf811
AVS API 2023-03-01 (#24490)
cataggar Aug 4, 2023
7411120
Update readme.python.md (#25195)
msyyc Aug 7, 2023
a3089b2
Update readme.python.md (#25078)
msyyc Aug 7, 2023
9c9b6e3
[Hub Generated] Review request for Microsoft.HybridCompute to remove …
vedkale Aug 8, 2023
b940329
[Compute] New API Version 2023-04-02 (#25118)
haagha Aug 8, 2023
2888f49
New AO5GC 1.0 service - 2023-05-15-preview (#24950)
satravi Aug 8, 2023
7848c04
[Hub Generated] Review request for Microsoft.ContainerService/aks to …
FumingZhang Aug 8, 2023
ad997e9
[TypeSpec Validation] Only validate all specs on core PRs to public r…
mikeharder Aug 8, 2023
340a810
Use unix line endings always, even on Windows (#24817)
mikeharder Aug 8, 2023
a5e7ff5
Synapse change sessionId type from int to string (#25210)
kevinzz6 Aug 8, 2023
2735b62
[TypeSpec] Upgrade to 0.47.0 (#25223)
mikeharder Aug 9, 2023
9619613
Renormalize line endings from CRLF to LF (#25219)
mikeharder Aug 9, 2023
3e985d0
config readme.go.md (#25227)
Alancere Aug 9, 2023
ca16230
July 2023 API Version for Azure Data Manager for Agriculture (#24755)
archanac866 Aug 9, 2023
c65b388
`securitycenter`: fix yaml (#24619)
ziyeqf Aug 9, 2023
c992976
remove kubevirt and openstanck (#25094)
aditimalladi Aug 9, 2023
bf03746
[AutoSync] db0c25231 Merged PR 8381862: update manifest (#25034)
Sneezry Aug 10, 2023
d3edca9
[Hub Generated] Review request for Microsoft.DesktopVirtualization to…
alec-baird Aug 10, 2023
1a925d1
CRP 2023 07 01 version (#25066)
Aug 10, 2023
92b0d1c
Update control_plane_template.md: update merge queues links (#25231)
Aug 10, 2023
0f8c649
Added artifactType query param to listkeys route (#24868)
saisankargochhayat Aug 10, 2023
990705d
[Hub Generated] Review request for Microsoft.ConnectedVMwarevSphere t…
aronip Aug 11, 2023
5b51cce
Release microsoft.app 2023 05 02 preview (#25051)
Juliehzl Aug 11, 2023
f09aacf
add dbName as required for spark metastore (#25259)
aim-for-better Aug 11, 2023
f69817e
the java sdk doesn't use that config (#25214)
aim-for-better Aug 11, 2023
5f700ac
Alprosms cost management microsoft.cost management 2023 08 01 (#25065)
alprosms Aug 11, 2023
baac183
Release keyvault microsoft.key vault 7.5 preview.1 (#25042)
jlichwa Aug 12, 2023
44b38c6
[TypeSpec Validation] Refactor rules into separate classes (#25101)
ckairen Aug 15, 2023
277c989
[Hub Generated] Review request for Microsoft.AzureStackHCI to add ver…
wyatt-troia-msft Aug 15, 2023
2d2d12d
Add update for location in order to support patch (#25192)
chchen3 Aug 15, 2023
0158236
[Hub Generated] Review request for Microsoft.Consumption to add versi…
sumitparwal Aug 15, 2023
eb3d96f
Update readme.python.md (#25291)
ChenxiJiang333 Aug 15, 2023
d99f18b
[Hub Generated] Review request for Microsoft.Devices to add version p…
MikalaiSavenka Aug 15, 2023
895c9c9
unify ARM review queues (#25317)
Aug 15, 2023
01ae995
Event Hub Geo DR - New API version 2023-01-01-preview (#21994)
dsouzaarun Aug 16, 2023
1df6d6f
Update readme.python.md (#25320)
ChenxiJiang333 Aug 16, 2023
54a3ae4
[TypeSpec Validation] Rename main file (#25311)
ckairen Aug 16, 2023
d5631d7
[Hub Generated] Review request for Microsoft.ContainerRegistry to add…
AntonioVT Aug 16, 2023
9b60845
Fix client samples (#25188)
avinashchandru Aug 16, 2023
81b12f0
remove redundant, obsolete guidance (#25341)
Aug 16, 2023
49946ab
Add openapi docs for OpenAI api version 2023-08-01-preview (#25274)
wangyuantao Aug 16, 2023
e9325d6
asm: update examples to use asm- prefix for revisions (#25248)
SanyaKochhar Aug 17, 2023
8fa9b50
[Hub Generated] Review request for Microsoft.Devices to add version s…
MikalaiSavenka Aug 17, 2023
81f088a
mgmt, java, codegen configure (#25352)
weidongxu-microsoft Aug 17, 2023
3784ff4
Release redisenterprise-Microsoft.cache 2023-07-01 (#24548)
revanthballa1188 Aug 17, 2023
9411d54
[TypeSpec Validation] Print Node/NPM Versions (#25360)
mikeharder Aug 17, 2023
449d841
[TypeSpec Validation] Require minimum Node versions (#25359)
mikeharder Aug 17, 2023
68ba30d
[Hub Generated] Review request for Microsoft.DelegatedNetwork to add …
isaac-dasan Aug 17, 2023
624dbc7
Update CODEOWNERS as Hyonho has transferred away a while ago (#25244)
Sandido Aug 17, 2023
5bcbf0e
ongoing (#25390)
Aug 18, 2023
7f70e35
hdinsightsaks readme.go.md (#25407)
Alancere Aug 21, 2023
12aa57a
update apimanagement examples (#25310)
kazrael2119 Aug 21, 2023
6d49d86
{AzureRESTAPISpecs} Broken link in Getting started with OpenAPI speci…
navba-MSFT Aug 21, 2023
616302e
Add OpenAPI Doc for Schema Registry 2023-07-01 API (#24789)
nickghardwick Aug 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[typespec-ci] Improve change detection (#24825)
- Fixes #24813
- Fixes #24818
  • Loading branch information
ckairen authored Jul 20, 2023
commit 971902a57b621c9d39e2329f38bab7729d8e4005
22 changes: 16 additions & 6 deletions eng/scripts/Get-TypeSpec-Folders.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,29 @@ param (
[string]$SourceBranch
)

$tspFiles = @()
$changedFiles = @()
if ([string]::IsNullOrEmpty($TargetBranch) -or [string]::IsNullOrEmpty($SourceBranch)) {
$tspFiles = (Get-ChildItem -path ./specification tspconfig.yaml -Recurse).FullName -replace "$($pwd.Path)/"
$changedFiles = (Get-ChildItem -path ./specification tspconfig.yaml -Recurse).Directory.FullName | ForEach-Object {[IO.Path]::GetRelativePath($($pwd.path), $_)}
$changedFiles = $changedFiles -replace '\\', '/'
}
else {
Write-Host "git -c core.quotepath=off -c i18n.logoutputencoding=utf-8 diff --name-only `"$TargetBranch...$SourceBranch`" -- | Where-Object {`$_.StartsWith('specification')}"
$tspFiles = git -c core.quotepath=off -c i18n.logoutputencoding=utf-8 diff --name-only `"$TargetBranch...$SourceBranch`" -- | Where-Object {$_.StartsWith('specification')}
$changedFiles = git -c core.quotepath=off -c i18n.logoutputencoding=utf-8 diff --name-only `"$TargetBranch...$SourceBranch`" -- | Where-Object {$_.StartsWith('specification')}
$changedFiles = $changedFiles -replace '\\', '/'

Write-Host "changedFiles:"
foreach ($changedFile in $changedFiles) {
Write-Host " $changedFile"
}
Write-Host
}

$typespecFolders = @()
foreach ($file in $tspFiles) {
$file -match 'specification\/[^\/]*\/' | out-null
$typespecFolders += (Get-ChildItem -path $matches[0] tspconfig.yaml -Recurse).Directory.FullName -replace "$($pwd.Path)/"
foreach ($file in $changedFiles) {
if ($file -match 'specification\/[^\/]*\/') {
$typespecFolder = (Get-ChildItem -path $matches[0] tspconfig.yaml -Recurse).Directory.FullName | ForEach-Object {if ($_) { [IO.Path]::GetRelativePath($($pwd.path), $_) }}
$typespecFolders += $typespecFolder -replace '\\', '/'
}
}
$typespecFolders = $typespecFolders | Select-Object -Unique

Expand Down
22 changes: 15 additions & 7 deletions eng/scripts/Validate-TypeSpec.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,26 @@ param (
[string]$SourceBranch
)

$typespecFolders = @()
$exitCode = 0

$typespecFolders = &"$PSScriptRoot/Get-TypeSpec-Folders.ps1" "$SpecsRepoRootDirectory" "$TargetBranch" "$SourceBranch"

$exitCode = 0
Write-Host "typespecFolders:"
foreach ($typespecFolder in $typespecFolders) {
npx --no tsv $typespecFolder 2>&1 | Write-Host
if ($LASTEXITCODE) {
$exitCode = 1
Write-Host " $typespecFolder"
}
Write-Host

if ($typespecFolders) {
$typespecFolders = $typespecFolders.Split('',[System.StringSplitOptions]::RemoveEmptyEntries)
foreach ($typespecFolder in $typespecFolders) {
npx --no tsv $typespecFolder 2>&1 | Write-Host
if ($LASTEXITCODE) {
$exitCode = 1
}
git restore .
git clean -df
}
git restore .
git clean -df
}

exit $exitCode