Skip to content

feat(github): add function to clear item values in GitHub project - #133

Merged
rulasg merged 12 commits into
mainfrom
github-clear-item-value
Aug 3, 2025
Merged

feat(github): add function to clear item values in GitHub project#133
rulasg merged 12 commits into
mainfrom
github-clear-item-value

Conversation

@rulasg

@rulasg rulasg commented Aug 3, 2025

Copy link
Copy Markdown
Owner

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.

Comment thread Test/public/project_items_staged.test.ps1 Fixed
Comment thread Test/public/project_items_staged.test.ps1 Fixed

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

The variable 'transcript' is assigned but never used.
Comment thread public/driver_gh.ps1
.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

The cmdlet 'Invoke-GitHubClearItemValues' uses a plural noun. A singular noun should be used instead.
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

Line has trailing whitespace
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

Line has trailing whitespace
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

Line has trailing whitespace
@rulasg
rulasg merged commit 24acc57 into main Aug 3, 2025
3 checks passed
@rulasg
rulasg deleted the github-clear-item-value branch August 3, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants