-
Notifications
You must be signed in to change notification settings - Fork 8
🪲 [Fix]: Multi-select custom properties no longer lose individual values #577
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
378665d
34a7dfe
5434cfe
9b8a0af
ffa1c00
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,14 +2,19 @@ class GitHubCustomProperty { | |
| # The name of the custom property. | ||
| [string] $Name | ||
|
|
||
| # The value of the custom property. | ||
| [string] $Value | ||
| # The value of the custom property. Can be a string or an array of strings for multi-select properties. | ||
| [object] $Value | ||
|
|
||
| GitHubCustomProperty() {} | ||
|
|
||
| GitHubCustomProperty([PSCustomObject] $Object) { | ||
| $this.Name = $Object.property_name ?? $Object.propertyName ?? $Object.Name | ||
| $this.Value = $Object.value ?? $Object.Value | ||
| $rawValue = $Object.value ?? $Object.Value | ||
| if ($rawValue -is [System.Collections.IEnumerable] -and $rawValue -isnot [string]) { | ||
| $this.Value = [string[]]$rawValue | ||
| } else { | ||
| $this.Value = $rawValue | ||
| } | ||
|
Comment on lines
10
to
+17
|
||
| } | ||
|
|
||
| [string] ToString() { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.