-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding MAR Manifest file generator #726
base: main
Are you sure you want to change the base?
Conversation
…into users/krbar/setBicepMcr
[CmdletBinding(SupportsShouldProcess)] | ||
param ( | ||
[Parameter(Mandatory = $false)] | ||
[string] $OutputFile = $(Join-Path $PSScriptRoot 'bicep.yml') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[string] $OutputFile = $(Join-Path $PSScriptRoot 'bicep.yml') | |
[string] $OutputFile = Join-Path $PSScriptRoot 'bicep.yml' |
# Loop through each item in the filtered data | ||
foreach ($item in $formattedBicepFullCsv) { | ||
# Remove '@Azure/' from the ModuleOwnersGHTeam property | ||
$item.ModuleOwnersGHTeam = $item.ModuleOwnersGHTeam -replace '@Azure/', '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$item.ModuleOwnersGHTeam = $item.ModuleOwnersGHTeam -replace '@Azure/', '' | |
$item.ModuleOwnersGHTeam = $item.ModuleOwnersGHTeam -replace '@Azure\/', '' |
Careful with the regex
# Remove '@Azure/' from the ModuleOwnersGHTeam property | ||
$item.ModuleOwnersGHTeam = $item.ModuleOwnersGHTeam -replace '@Azure/', '' | ||
# Remove '@Azure/' from the ModuleContributorsGHTeam property | ||
$item.ModuleContributorsGHTeam = $item.ModuleContributorsGHTeam -replace '@Azure/', '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$item.ModuleContributorsGHTeam = $item.ModuleContributorsGHTeam -replace '@Azure/', '' | |
$item.ModuleContributorsGHTeam = $item.ModuleContributorsGHTeam -replace '@Azure\/', '' |
@@ -0,0 +1,330 @@ | |||
version: 2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matebarabas , a comment of rememberence
Overview/Summary
Adding script to re-create the MAR Manifest file from the current CSV module indexes.
This PR fixes/adds/changes/removes
utilities/tools/MARManifestGenerator/Set-MARManifest.ps1
utilities/tools/MARManifestGenerator/src/manifestHeader.yml
, which contains the constant part of the manifest fileScript usage example:
Breaking Changes
none
As part of this Pull Request I have
main
branch