Conversation
…t-Item for staged comments
… -SkipItems parameter
| $i = $p.issue | ||
|
|
||
| $comment = "New comment" | ||
| $comment = "New comment" |
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| # Act the edit part | ||
| Edit-ProjectItem -Owner $owner -ProjectNumber $projectNumber -ItemId $i.id -FieldName "AddComment" -Value $comment | ||
|
|
||
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| $p = Get-Mock_Project_700; $Owner = "octodemo" ; $ProjectNumber = 700 | ||
|
|
||
| $i = $p.issue | ||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| # Check if is staged | ||
| if($database.Staged.$ItemId){ | ||
|
|
||
|
|
Check notice
Code scanning / PSScriptAnalyzer
Line has trailing whitespace Note
| } | ||
| } | ||
|
|
||
| function Set-LastComment{ |
Check warning
Code scanning / PSScriptAnalyzer
Function 'Set-LastComment' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning
| [CmdletBinding()] | ||
| [OutputType([string])] | ||
| param( | ||
| [Parameter(Position = 0)][object[]]$Database, |
Check warning
Code scanning / PSScriptAnalyzer
The parameter 'Database' has been declared but not used. Warning
| [OutputType([string])] | ||
| param( | ||
| [Parameter(Position = 0)][object[]]$Database, | ||
| [Parameter(ValueFromPipeline, Position = 1)][hashtable]$Item, |
Check warning
Code scanning / PSScriptAnalyzer
Command accepts pipeline input but has not defined a process block. Warning
| } | ||
| } | ||
|
|
||
| function Remove-ItemStaged{ |
Check warning
Code scanning / PSScriptAnalyzer
Function 'Remove-ItemStaged' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. Warning
Update timestamps and comment bodies in mock data. Implement a function to set the last comment and enhance the retrieval of project items to include a skip parameter. Update tests to reflect these changes and ensure proper functionality.