Skip to content

Commit 9709b1f

Browse files
committedJul 15, 2024
fix: invalid markdown emoji
Signed-off-by: Leonard Sheng Sheng Lee <[email protected]>
1 parent 5902c69 commit 9709b1f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

‎update-fork.ps1

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
# example calls:
42
# .\update-fork.ps1 -orgName "rajbos-actions" -userName "xxx" -PAT $env:GitHubPAT $issueTitle "Parent repository for [rajbos/azure-docs] has updates available"
53

@@ -38,7 +36,7 @@ function UpdateFork {
3836
)
3937

4038
$forkUrl = GetForkCloneUrl -fork $fork -PAT $PAT
41-
39+
4240
# set user settings
4341
git config --global user.email "noreply@githubupdater.com"
4442
git config --global user.name "GitHub Fork Updater"
@@ -91,7 +89,7 @@ function Main {
9189
)
9290

9391
Write-Host "Starting the update for issue with title [$issueTitle] having number [$issueId] on repository [$issuesRepository] and a PAT that has length [$($PAT.Length)]"
94-
92+
9593
$workflowRunUrl = "$($env:GITHUB_SERVER_URL)/$($env:GITHUB_REPOSITORY)/actions/runs/$($env:GITHUB_RUN_ID)"
9694
Write-Host "Found workflowRunUrl: [$workflowRunUrl]"
9795

@@ -100,7 +98,7 @@ function Main {
10098
$forkResult = UpdateFork -fork $fork -PAT $PAT
10199
if ($forkResult -eq 1) {
102100
Write-Host "Error with the update of the fork, halting execution"
103-
AddCommentToIssue -number $issueId -message ":alert: Found merge conflicts, aborting the update" -repoName $issuesRepository -PAT $PAT
101+
AddCommentToIssue -number $issueId -message ":warning: Found merge conflicts, aborting the update" -repoName $issuesRepository -PAT $PAT
104102
return 1
105103
}
106104

@@ -110,7 +108,7 @@ function Main {
110108

111109
# make sure we are back where we started (for easier local testing)
112110
Set-Location $PSScriptRoot
113-
111+
114112
AddCommentToIssue -number $issueId -message "Fork has been updated" -repoName $issuesRepository -PAT $PAT
115113
CloseIssue -number $issueId -issuesRepositoryName $issuesRepository -PAT $PAT
116114
}

0 commit comments

Comments
 (0)
Please sign in to comment.