Skip to content

v0.40.6

Choose a tag to compare

@github-actions github-actions released this 15 Feb 21:07
· 12 commits to main since this release
ca9d6f7

🩹 [Patch]: Remove status function for Australia region (migrated to new reporting type) (#548)

Removes the obsolete Australia region from GitHub Status functions and centralizes stamp definitions into a single $script:GitHub.Stamps property. A new Get-GitHubStamp function provides a public API for listing and retrieving available stamps, and all status functions now use it as their single source of truth.

Removed Australia region

The Australia status page (https://au.githubstatus.com) has been migrated to a new reporting type and is no longer available through the GitHub Status API. All status functions have been updated to remove Australia from the available stamps.

Centralized stamp definitions

Stamp definitions have been moved from a standalone $script:StatusBaseURL hashtable into the $script:GitHub.Stamps property, making them part of the main module configuration object. This provides a single source of truth for all stamp-related logic across functions, completers, and tests.

New Get-GitHubStamp function

A new public function Get-GitHubStamp exposes the available stamps:

# List all available stamps
Get-GitHubStamp

# Get a specific stamp by name
Get-GitHubStamp -Name 'Europe'

Parameter changes

The -Stamp parameter has been renamed to -Name across all status functions for consistency. The original -Stamp name remains available as an alias for backward compatibility:

# Both of these work
Get-GitHubStatus -Name 'Europe'
Get-GitHubStatus -Stamp 'Europe'  # Alias, still supported

Tab-completion

Status functions now support tab-completion for the -Name parameter via a registered argument completer that reads from Get-GitHubStamp, so completion options stay in sync with the defined stamps automatically.