Commit c593843
🩹 [Patch]: Add support for US stamp in GitHub status functions (#463)
This pull request adds support for the `US` stamp to various GitHub
status-related scripts and updates the corresponding test cases. The
changes ensure that the `US` stamp is included in parameter validation,
base URLs, and test coverage.
### Updates to parameter validation:
- Added `US` to the `ValidateSet` for the `$Stamp` parameter.
* `Get-GitHubScheduledMaintenance`
* `Get-GitHubStatus.ps1`
* `Get-GitHubStatusComponent`
* `Get-GitHubStatusIncident`
### Updates to base URLs
* Added the base URL for the `US` stamp (`https://us.githubstatus.com`).
### Updates to test coverage:
* Included `US` in the 'Status' test cases to ensure proper validation
and functionality for the new stamp.
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: MariusStorhaug <[email protected]>
Co-authored-by: Marius Storhaug <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent c15c9f4 commit c593843
File tree
6 files changed
+6
-5
lines changed- src
- functions/public/Status
- variables/private
- tests
6 files changed
+6
-5
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
0 commit comments