Skip to content

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Dec 5, 2024

Introduce a function to fetch open issues from a specified repository that were created by the current user using the GitHub CLI.

@rulasg rulasg merged commit abd2a1b into main Dec 5, 2024
2 checks passed
@rulasg rulasg deleted the get-octodemo-issues branch December 5, 2024 14:51
<#
.SYNOPSIS
Retrieves open issues from a repository that were created by the current user.

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

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

Line has trailing whitespace

.PARAMETER Org
The organization name. Default is 'octodemo'.

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

Line has trailing whitespace

.PARAMETER Repo
The repository name. Default is 'bootstrap'.

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace Note

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

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

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead.
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