Skip to content

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Nov 2, 2023

No description provided.

@rulasg rulasg linked an issue Nov 2, 2023 that may be closed by this pull request
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@@ -0,0 +1,61 @@
function Add-ItemsToProject{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Add-ItemsToProject' does not have a help comment.

The cmdlet 'Add-ItemsToProject' does not have a help comment.
Add-ItemsToProjectFromARepo -ProjectNumber $number -Owner $e.Owner -RepoNameWithOwner $e.RepoBackWithOwner
} Export-ModuleMember -Function Add-ItemsToProject

function Add-ItemsToProjectFromARepo{

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Add-ItemsToProjectFromARepo' does not have a help comment.

The cmdlet 'Add-ItemsToProjectFromARepo' does not have a help comment.
$command = $command -replace "{repoWithOwner}", $RepoNameWithOwner

$command | Write-Information
$result = Invoke-Expression $command

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace
$command = $command -replace "{repoWithOwner}", $RepoNameWithOwner

$command | Write-Information
$result = Invoke-Expression $command

Check warning

Code scanning / PSScriptAnalyzer

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead.

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead.
return
}

$url = $result | ConvertFrom-Json | Select-Object -ExpandProperty url

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace

if ($PSCmdlet.ShouldProcess($RepoNameWithOwner, $command)) {
$commmand | Write-Information
$result = Invoke-Expression $commmand

Check warning

Code scanning / PSScriptAnalyzer

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead.

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead.
if ($PSCmdlet.ShouldProcess($RepoNameWithOwner, $command)) {
$commmand | Write-Information
$result = Invoke-Expression $commmand

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace
@rulasg rulasg merged commit 9c175c7 into main Nov 2, 2023
@rulasg rulasg deleted the 1-add-issuestoproject branch November 2, 2023 23:17
rulasg added a commit that referenced this pull request Nov 7, 2023
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.

Add-IssuesToProject

2 participants