Skip to content

get, add, remove issuedemo#2

Merged
rulasg merged 2 commits intomainfrom
rulasg-pr-YkCgW19d
Nov 27, 2024
Merged

get, add, remove issuedemo#2
rulasg merged 2 commits intomainfrom
rulasg-pr-YkCgW19d

Conversation

@rulasg
Copy link
Copy Markdown
Owner

@rulasg rulasg commented Nov 27, 2024

New PowerShell functions for issue management:

  • public/IssueDemo/issuesdemo.ps1: Added functions Get-IssueDemo, Add-IssueDemo, Remove-IssueDemo, and Get-Labels to manage GitHub issues. These functions allow fetching issues, adding new issues, removing issues, and processing issue labels, respectively.

Testing enhancements:

Comment thread Test/public/IssueDemo.test/issuedemo.test.ps1 Fixed
Comment thread public/IssueDemo/issuesdemo.ps1 Fixed

foreach ($i in $issues) {
$labels = Get-Labels -Labels $i.labels

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace
Comment thread public/IssueDemo/issuesdemo.ps1 Fixed
Comment thread public/IssueDemo/issuesdemo.ps1 Fixed
Comment thread public/IssueDemo/issuesdemo.ps1 Fixed
}
} Export-ModuleMember -Function Remove-IssueDemo

function Get-Labels {

Check warning

Code scanning / PSScriptAnalyzer

The cmdlet 'Get-Labels' uses a plural noun. A singular noun should be used instead.

The cmdlet 'Get-Labels' uses a plural noun. A singular noun should be used instead.
Signed-off-by: rulasg <rulasg@github.com>

if ($PSCmdlet.ShouldProcess("Add", "gh issue create -t $Title -b <MultilineContet> -l $Labels -R $RepoWithOwner")) {
$result = gh issue create -t $Title -b $Body -l $Labels -R $RepoWithOwner

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace
$result = gh issue create -t $Title -b $Body -l $Labels -R $RepoWithOwner

$result | Write-Verbose

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace

return $result
}

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace
@rulasg rulasg merged commit 7510579 into main Nov 27, 2024
@rulasg rulasg deleted the rulasg-pr-YkCgW19d branch November 27, 2024 09:09
@rulasg rulasg changed the title demohelper-issuedemo get, add, remove issuedemo Nov 27, 2024
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