From 72246dfc92aeddb266b7db174b59faa86f3cd44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Barab=C3=A1s?= Date: Wed, 1 May 2024 14:00:23 -0700 Subject: [PATCH] chore: shortening module statuses (#1809) --- .../pipelines/platform/Set-AvmGitHubIssueOwnerConfig.ps1 | 4 ++-- .../pipelines/platform/Set-AvmGithubIssueForWorkflow.ps1 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/avm/utilities/pipelines/platform/Set-AvmGitHubIssueOwnerConfig.ps1 b/avm/utilities/pipelines/platform/Set-AvmGitHubIssueOwnerConfig.ps1 index d2d7b20cb1..3b43dcd595 100644 --- a/avm/utilities/pipelines/platform/Set-AvmGitHubIssueOwnerConfig.ps1 +++ b/avm/utilities/pipelines/platform/Set-AvmGitHubIssueOwnerConfig.ps1 @@ -60,7 +60,7 @@ function Set-AvmGitHubIssueOwnerConfig { "@ } # orphaned module - elseif ($module.ModuleStatus -eq 'Module Orphaned :eyes:') { + elseif ($module.ModuleStatus -eq 'Orphaned :eyes:') { $reply = @" **@$($issue.author.login), thanks for submitting this issue for the ``$moduleName`` module!** @@ -91,7 +91,7 @@ function Set-AvmGitHubIssueOwnerConfig { gh issue comment $issue.url --body $reply --repo $Repo } - if (($module.ModuleStatus -ne 'Module Orphaned :eyes:') -and (-not ([string]::IsNullOrEmpty($module.PrimaryModuleOwnerGHHandle)))) { + if (($module.ModuleStatus -ne 'Orphaned :eyes:') -and (-not ([string]::IsNullOrEmpty($module.PrimaryModuleOwnerGHHandle)))) { if ($PSCmdlet.ShouldProcess(("owner [{0}] to issue [$($issue.title)]" -f $module.PrimaryModuleOwnerGHHandle), 'Assign')) { # assign owner $assign = gh issue edit $issue.url --add-assignee $module.PrimaryModuleOwnerGHHandle --repo $Repo diff --git a/avm/utilities/pipelines/platform/Set-AvmGithubIssueForWorkflow.ps1 b/avm/utilities/pipelines/platform/Set-AvmGithubIssueForWorkflow.ps1 index 03f5f4f95c..4a6308339d 100644 --- a/avm/utilities/pipelines/platform/Set-AvmGithubIssueForWorkflow.ps1 +++ b/avm/utilities/pipelines/platform/Set-AvmGithubIssueForWorkflow.ps1 @@ -105,7 +105,7 @@ function Set-AvmGithubIssueForWorkflow { # get CSV data $module = Get-AvmCsvData -ModuleIndex $moduleIndex | Where-Object ModuleName -EQ $moduleName - if (($module.ModuleStatus -ne 'Module Orphaned :eyes:') -and (-not ([string]::IsNullOrEmpty($module.PrimaryModuleOwnerGHHandle)))) { + if (($module.ModuleStatus -ne 'Orphaned :eyes:') -and (-not ([string]::IsNullOrEmpty($module.PrimaryModuleOwnerGHHandle)))) { $ProjectNumber = 566 # AVM - Module Issues $comment = @" > [!IMPORTANT]