Skip to content

Commit

Permalink
chore: shortening module statuses (Azure#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
matebarabas authored and hundredacres committed Jun 19, 2024
1 parent 397cf89 commit 72246df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!**
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 72246df

Please sign in to comment.