Conversation
|
|
||
| foreach ($i in $issues) { | ||
| $labels = Get-Labels -Labels $i.labels | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace
| } | ||
| } 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.
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
| $result = gh issue create -t $Title -b $Body -l $Labels -R $RepoWithOwner | ||
|
|
||
| $result | Write-Verbose | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace
|
|
||
| return $result | ||
| } | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New PowerShell functions for issue management:
public/IssueDemo/issuesdemo.ps1: Added functionsGet-IssueDemo,Add-IssueDemo,Remove-IssueDemo, andGet-Labelsto manage GitHub issues. These functions allow fetching issues, adding new issues, removing issues, and processing issue labels, respectively.Testing enhancements:
Test/public/IssueDemo.test/issuedemo.test.ps1: Added theTest_addIssuedemofunction to test the issue management functions. This function verifies the addition and removal of issues between two repositories.