Skip to content

Commit

Permalink
Remove filter for auto issue assignment (#802)
Browse files Browse the repository at this point in the history
Only modules marked as ok where compared. Now there is no filter for
status, so all modules, also orphaned ones are affected.
  • Loading branch information
rahalan authored Jan 12, 2024
1 parent 2936b04 commit 84dcfe9
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,17 @@ Function Get-AvmCsvData {

# Convert the CSV content to a PowerShell object
$formattedBicepFullCsv = ConvertFrom-CSV $unfilteredCSV.Content
# Filter the CSV data where the ModuleStatus is 'Module Available :green_circle:'
$filterCsvAvailableBicepModule = $formattedBicepFullCsv | Where-Object { $_.ModuleStatus -eq 'Module Available :green_circle:' }

# Loop through each item in the filtered data
foreach ($item in $filterCsvAvailableBicepModule) {
foreach ($item in $formattedBicepFullCsv) {
# Remove '@Azure/' from the ModuleOwnersGHTeam property
$item.ModuleOwnersGHTeam = $item.ModuleOwnersGHTeam -replace '@Azure/', ''
# Remove '@Azure/' from the ModuleContributorsGHTeam property
$item.ModuleContributorsGHTeam = $item.ModuleContributorsGHTeam -replace '@Azure/', ''
}

# Return the filtered and modified data
return $filterCsvAvailableBicepModule
# Return the modified data
return $formattedBicepFullCsv
}

<#
Expand Down

0 comments on commit 84dcfe9

Please sign in to comment.