-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add Get-DemoIssues function for retrieving user-created open issues #6
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
Conversation
| <# | ||
| .SYNOPSIS | ||
| Retrieves open issues from a repository that were created by the current user. | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| .DESCRIPTION | ||
| This function uses the GitHub CLI to search for open issues in a specified repository | ||
| that were created by the current user. | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
|
|
||
| .PARAMETER Org | ||
| The organization name. Default is 'octodemo'. | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
|
|
||
| .PARAMETER Repo | ||
| The repository name. Default is 'bootstrap'. | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| .EXAMPLE | ||
| Get-DemoIssues -Org 'octodemo' -Repo 'bootstrap' | ||
| #> | ||
| function Get-DemoIssues { |
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'Get-DemoIssues' uses a plural noun. A singular noun should be used instead. Warning
| [string]$Repo = "bootstrap" | ||
| ) | ||
| $command = "gh search issues repo:$Org/$Repo author:@me is:open" | ||
| Invoke-Expression $command |
Check warning
Code scanning / PSScriptAnalyzer
Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead. Warning
Introduce a function to fetch open issues from a specified repository that were created by the current user using the GitHub CLI.