feat(github): add function to clear item values in GitHub project - #133
Conversation
…o clear values in Sync-Project
… item field values
|
|
||
| Start-MyTranscript | ||
| $result = Sync-ProjectItemStagedAsync -Owner $Owner -ProjectNumber $ProjectNumber -SyncBatchSize 2 | ||
| $transcript = Stop-MyTranscript |
Check warning
Code scanning / PSScriptAnalyzer
The variable 'transcript' is assigned but never used. Warning
| .NOTES | ||
| Currently only text, number, date, assignees, labels, single-select, iteration and milestone fields are supported. | ||
| #> | ||
| function Invoke-GitHubClearItemValues{ |
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'Invoke-GitHubClearItemValues' uses a plural noun. A singular noun should be used instead. Warning
| Gets a list of project items from a GitHub project. | ||
|
|
||
| .DESCRIPTION | ||
| Retrieves all items from a GitHub project and returns them as a hashtable with ItemId as the key. |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| Finds project items by exact title match. | ||
|
|
||
| .DESCRIPTION | ||
| Searches for project items that have an exact title match (case-insensitive). |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| Searches for project items using a filter across multiple fields. | ||
|
|
||
| .DESCRIPTION | ||
| Searches for project items using a filter that can match across multiple fields including title, |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
Implement a new function to clear specific field values in GitHub project items. This includes adding command aliases for the new functionality and refactoring existing code to eliminate duplication. Tests for both synchronous and asynchronous operations have been added to ensure reliability.