Skip to content

Commit 2ed8223

Browse files
committed
Moved under arm-leases
1 parent 77504c7 commit 2ed8223

6 files changed

Lines changed: 12 additions & 13 deletions

File tree

.github/arm-leases/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,28 @@ If your PR check **"ARM Lease Validation"** is failing, review the error message
9898

9999
## Automation Scripts
100100

101-
Scripts are located in `eng/scripts/`. Run from the repository root.
101+
Scripts are located in `.github/arm-leases/scripts/`. Run from the repository root.
102102

103103
### Single Resource Provider
104104

105105
**Syntax:**
106106

107107
```bash
108108
# Without service groups
109-
node eng/scripts/generate-lease-files.js --orgName <orgName> --rpNamespace <rpNamespace> --reviewer "@youralias" --startdate <YYYY-MM-DD> --duration <P#D>
109+
node .github/arm-leases/scripts/generate-lease-files.js --orgName <orgName> --rpNamespace <rpNamespace> --reviewer "@youralias" --startdate <YYYY-MM-DD> --duration <P#D>
110110
111111
# With service groups
112-
node eng/scripts/generate-lease-files.js --orgName <orgName> --rpNamespace <rpNamespace> --reviewer "@youralias" --startdate <YYYY-MM-DD> --duration <P#D> --serviceName "<serviceName1>,<serviceName2>"
112+
node .github/arm-leases/scripts/generate-lease-files.js --orgName <orgName> --rpNamespace <rpNamespace> --reviewer "@youralias" --startdate <YYYY-MM-DD> --duration <P#D> --serviceName "<serviceName1>,<serviceName2>"
113113
```
114114

115115
**Examples:**
116116

117117
```bash
118118
# Without service groups
119-
node eng/scripts/generate-lease-files.js --orgName storage --rpNamespace Microsoft.Storage --reviewer "@johndoe" --startdate 2026-05-01 --duration P90D
119+
node .github/arm-leases/scripts/generate-lease-files.js --orgName storage --rpNamespace Microsoft.Storage --reviewer "@johndoe" --startdate 2026-05-01 --duration P90D
120120
121121
# With service groups
122-
node eng/scripts/generate-lease-files.js --orgName compute --rpNamespace Microsoft.Compute --reviewer "@janesmith" --startdate 2026-05-01 --duration P180D --serviceName "DiskRP,ComputeRP,GalleryRP"
122+
node .github/arm-leases/scripts/generate-lease-files.js --orgName compute --rpNamespace Microsoft.Compute --reviewer "@janesmith" --startdate 2026-05-01 --duration P180D --serviceName "DiskRP,ComputeRP,GalleryRP"
123123
```
124124

125125
### Bulk Generation
@@ -128,23 +128,23 @@ node eng/scripts/generate-lease-files.js --orgName compute --rpNamespace Microso
128128

129129
```bash
130130
# Generate resource provider list (without service groups)
131-
node eng/scripts/fetch-resource-providers.js --output <filename>
131+
node .github/arm-leases/scripts/fetch-resource-providers.js --output <filename>
132132
133133
# Generate resource provider list (with service groups)
134-
node eng/scripts/fetch-resource-providers.js --with-service-groups --output <filename>
134+
node .github/arm-leases/scripts/fetch-resource-providers.js --with-service-groups --output <filename>
135135
136136
# Generate lease files from list
137-
node eng/scripts/generate-lease-files.js --input <filename> --reviewer "@youralias" --startdate <YYYY-MM-DD> --duration <P#D>
137+
node .github/arm-leases/scripts/generate-lease-files.js --input <filename> --reviewer "@youralias" --startdate <YYYY-MM-DD> --duration <P#D>
138138
```
139139

140140
**Examples:**
141141

142142
```bash
143143
# RPs without service groups (e.g., Microsoft.Storage)
144-
node eng/scripts/fetch-resource-providers.js --output rps-simple.txt
145-
node eng/scripts/generate-lease-files.js --input rps-simple.txt --reviewer "@johndoe" --startdate 2026-04-16 --duration P180D
144+
node .github/arm-leases/scripts/fetch-resource-providers.js --output rps-simple.txt
145+
node .github/arm-leases/scripts/generate-lease-files.js --input rps-simple.txt --reviewer "@johndoe" --startdate 2026-04-16 --duration P180D
146146
147147
# RPs with service groups (e.g., Microsoft.Compute with DiskRP, ComputeRP)
148-
node eng/scripts/fetch-resource-providers.js --with-service-groups --output rps-groups.txt
149-
node eng/scripts/generate-lease-files.js --input rps-groups.txt --reviewer "@johndoe" --startdate 2026-04-16 --duration P180D
148+
node .github/arm-leases/scripts/fetch-resource-providers.js --with-service-groups --output rps-groups.txt
149+
node .github/arm-leases/scripts/generate-lease-files.js --input rps-groups.txt --reviewer "@johndoe" --startdate 2026-04-16 --duration P180D
150150
```
File renamed without changes.
File renamed without changes.

eng/scripts/Tests/fetch-resource-providers.test.js renamed to .github/arm-leases/scripts/tests/fetch-resource-providers.test.js

File renamed without changes.

eng/scripts/Tests/generate-lease-files.test.js renamed to .github/arm-leases/scripts/tests/generate-lease-files.test.js

File renamed without changes.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ warnings.txt
120120
# Blanket ignores
121121
*.js
122122
!.github/**/*.js
123-
!eng/scripts/**/*.js
124123
*.d.ts
125124
*.js.map
126125
*.d.ts.map

0 commit comments

Comments
 (0)