Maintain item status in project automation (#32785)

This commit is contained in:
Felix Becker 2022-03-18 11:43:56 -07:00 committed by GitHub
parent 731023ab43
commit cb46e077c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,9 +54,11 @@ switch ($github.event_name) {
$proposer = $github.event.sender.login
Write-Information "Updating issue as 'Proposed for iteration' by @$proposer"
$item |
Set-GitHubBetaProjectItemField -Name 'Status' -Value 'Proposed for iteration' |
Set-GitHubBetaProjectItemField -Name 'Proposed by' -Value $proposer
if ($item.Fields['Status'] -notin 'In Progress', 'In Review', 'Done') {
$item |
Set-GitHubBetaProjectItemField -Name 'Status' -Value 'Proposed for iteration' |
Set-GitHubBetaProjectItemField -Name 'Proposed by' -Value $proposer
}
# Post Slack message