Skip to content
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

fix: minor bugs in worflow automation regarding failed pipelines #1751

Merged
merged 48 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
6a1cdfc
add pipeline for testing
rahalan Dec 7, 2023
bbf37b1
Merge branch 'Azure:main' into main
rahalan Dec 12, 2023
12c335c
Merge branch 'Azure:main' into main
rahalan Dec 18, 2023
31bed87
Merge branch 'Azure:main' into main
rahalan Dec 20, 2023
54700f3
Merge branch 'Azure:main' into main
rahalan Dec 22, 2023
fd8cec4
Merge branch 'Azure:main' into main
rahalan Jan 2, 2024
bf0238b
Merge branch 'Azure:main' into main
rahalan Jan 4, 2024
28d95ee
Merge branch 'Azure:main' into main
rahalan Jan 6, 2024
6c3e630
Merge branch 'Azure:main' into main
rahalan Jan 8, 2024
70d2d5d
Merge branch 'main' of https://github.com/rahalan/bicep-registry-modules
rahalan Jan 10, 2024
6af83a0
Merge branch 'Azure:main' into main
rahalan Jan 11, 2024
01e1a07
Merge branch 'Azure:main' into main
rahalan Jan 12, 2024
9b94822
Merge branch 'Azure:main' into main
rahalan Jan 21, 2024
4e38b3c
Merge branch 'Azure:main' into main
rahalan Jan 27, 2024
2a2c624
Merge branch 'Azure:main' into main
rahalan Feb 3, 2024
831c5ce
Merge branch 'Azure:main' into main
rahalan Feb 6, 2024
aaf8ca1
Merge branch 'Azure:main' into main
rahalan Feb 25, 2024
a6f8206
add action
rahalan Feb 26, 2024
f71ab21
Merge branch 'Azure:main' into main
rahalan Feb 28, 2024
5ce2f06
Merge branch 'Azure:main' into main
rahalan Feb 29, 2024
26fece2
Merge branch 'Azure:main' into main
rahalan Mar 2, 2024
718beef
Merge branch 'Azure:main' into main
rahalan Mar 5, 2024
2182aab
Merge branch 'Azure:main' into main
rahalan Mar 6, 2024
679461d
add pipeline
rahalan Mar 6, 2024
0d547cc
Merge branch 'Azure:main' into main
rahalan Mar 7, 2024
82ac5f4
Merge branch 'Azure:main' into main
rahalan Mar 10, 2024
591b474
Merge branch 'Azure:main' into main
rahalan Mar 11, 2024
9a37df7
Merge branch 'Azure:main' into main
rahalan Mar 15, 2024
f08c552
Merge branch 'Azure:main' into main
rahalan Mar 20, 2024
338e720
Merge branch 'Azure:main' into main
rahalan Mar 21, 2024
8bde563
Merge branch 'Azure:main' into main
rahalan Mar 22, 2024
4cbe985
Merge branch 'Azure:main' into main
rahalan Mar 24, 2024
3c61de7
Merge branch 'Azure:main' into main
rahalan Mar 28, 2024
8ee5301
Merge branch 'Azure:main' into main
rahalan Apr 3, 2024
9c6bcdd
Merge branch 'Azure:main' into main
rahalan Apr 5, 2024
b628324
Merge branch 'Azure:main' into main
rahalan Apr 9, 2024
86df98c
Merge branch 'Azure:main' into main
rahalan Apr 10, 2024
2381cbc
Merge branch 'Azure:main' into main
rahalan Apr 11, 2024
71f5504
Merge branch 'Azure:main' into main
rahalan Apr 12, 2024
ad7a40a
Merge branch 'Azure:main' into main
rahalan Apr 14, 2024
86ac74a
Merge branch 'Azure:main' into main
rahalan Apr 15, 2024
3129be6
Merge branch 'Azure:main' into main
rahalan Apr 19, 2024
62fefdf
Merge branch 'Azure:main' into main
rahalan Apr 19, 2024
bcab259
Merge branch 'Azure:main' into main
rahalan Apr 19, 2024
482a412
Merge branch 'Azure:main' into main
rahalan Apr 24, 2024
f7978ed
fix minor bugs
rahalan Apr 25, 2024
b7bbebb
revert
rahalan Apr 26, 2024
7ab0bea
Merge branch 'main' into users/rahalan/FixAutomationWorkflows4
eriqua Apr 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ function Set-AvmGitHubIssueOwnerConfig {
if ($issue.title.StartsWith('[AVM Module Issue]')) {
$moduleName = ($issue.body.Split("`n") -match 'avm/(?:res|ptn)')[0].Trim().Replace(' ', '')

if ([string]::IsNullOrEmpty($moduleName)) {
eriqua marked this conversation as resolved.
Show resolved Hide resolved
throw 'No valid module name was found in the issue.'
}

$moduleIndex = $moduleName.StartsWith('avm/res') ? 'Bicep-Resource' : 'Bicep-Pattern'
# get CSV data
$module = Get-AvmCsvData -ModuleIndex $moduleIndex | Where-Object ModuleName -EQ $moduleName
Expand Down Expand Up @@ -74,7 +70,7 @@ function Set-AvmGitHubIssueOwnerConfig {
**@$($issue.author.login), thanks for submitting this issue for the ``$moduleName`` module!**

> [!IMPORTANT]
> A member of the @azure/$($module.ModuleOwnersGHTeam) or @azure/$($module.ModuleContributorsGHTeam) team will review it soon!
> A member of the @Azure/$($module.ModuleOwnersGHTeam) or @Azure/$($module.ModuleContributorsGHTeam) team will review it soon!
"@
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function Set-AvmGithubIssueForWorkflow {
$ProjectNumber = 566 # AVM - Module Issues
$comment = @"
> [!IMPORTANT]
> @$($module.ModuleOwnersGHTeam), the workflow for the ``$moduleName`` module has failed. Please investigate the failed workflow run. If you are not able to do so, please inform the AVM core team to take over.
> @Azure/$($module.ModuleOwnersGHTeam), the workflow for the ``$moduleName`` module has failed. Please investigate the failed workflow run. If you are not able to do so, please inform the AVM core team to take over.
"@
# assign owner
$assign = gh issue edit $issue.url --add-assignee $module.PrimaryModuleOwnerGHHandle --repo $Repo
Expand All @@ -121,7 +121,7 @@ function Set-AvmGithubIssueForWorkflow {
> This issue couldn't be assigend due to an internal error. @$($module.PrimaryModuleOwnerGHHandle), please make sure this issue is assigned to you and please provide an initial response as soon as possible, in accordance with the [AVM Support statement](https://aka.ms/AVM/Support).
"@

gh issue comment $issue.url --body $reply --repo $Repo
gh issue comment $issue.url --body $comment --repo $Repo
}
}
}
Expand Down