You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--body "The version specified on the release request is invalid. Please create a new release request with a valid version or edit the description and set a valid version."
354
+
Return
355
+
}
356
+
357
+
$projectPath="src/$component/$component.csproj"
358
+
359
+
if ((Test-Path-Path $projectPath) -eq$false)
360
+
{
361
+
gh issue comment $issueNumber`
362
+
--body "I couldn't find the project file for the requested component. Please create a new release request and select a valid component or edit the description and set a valid component."
--body "I couldn't find ``MinVerTagPrefix`` in the project file for the requested component. Please create a new release request and select a valid component or edit the description and set a valid component."
--comment "I executed the prepare release script for ``$component`` version ``$version``` because $kickOffWorkflowReason."
430
+
431
+
return
432
+
}
433
+
434
+
if ($triggeringEventName-eq'issues')
435
+
{
436
+
# Executed when issues are created or edited
437
+
$componentOwnerApprovers=''
438
+
if ($componentOwners.Count-gt0)
439
+
{
440
+
foreach ($componentOwnerin$componentOwners)
441
+
{
442
+
$componentOwnerApprovers+="@$componentOwner"
443
+
}
444
+
}
445
+
446
+
$body=
447
+
@"
448
+
$componentOwnerApprovers$approvingGroups
449
+
450
+
Post a comment with "/PrepareRelease" in the body if you would like me to execute the prepare release script for the component and version listed in the description.
451
+
"@
452
+
453
+
gh issue comment $issueNumber--body $body
454
+
}
455
+
else {
456
+
# Executed when issues are commented with the /PrepareRelease command
457
+
if ($kickOffWorkflow-eq$false)
458
+
{
459
+
gh issue comment $issueNumber`
460
+
--body "I'm sorry @$requestedByUserName but you don't have permission to execute the prepare release script. Only maintainers, approvers, and/or owners of the component may use the `"/PrepareRelease`" command."
0 commit comments