Skip to content

Commit 03f3ed2

Browse files
authored
Merge pull request #13815 from MicrosoftDocs/workflows-test
hyperlink BC
2 parents fb01329 + 415d207 commit 03f3ed2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/Shared-StaleBranch.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ jobs:
142142
$CompareUrl = $RepoData.compare_url.Replace("{base}...{head}", "$DefaultBranch...")
143143
$GitHubGraphQlUrl = "https://api.github.com/graphql"
144144
$BranchesHtmlUrl = "$($GitHubData.event.repository.html_url)/branches"
145+
$GitHubBaseUrl = "https://github.com"
145146
146147
# Get the list of branches to process and set the initial branch count.
147148
$Branches = Invoke-RestMethod -Headers $GitHubHeaders -Uri $BranchesUrl -Method GET -FollowRelLink -MaximumFollowRelLink 50 -ResponseHeadersVariable ResponseHeaders
@@ -530,7 +531,7 @@ jobs:
530531
$BC = $BranchReport.BranchCreator
531532

532533
Write-Host "$PR`: Branch name: $BN. Branch creator: $BC. Ahead by: $AB. Behind by: $BB. Days since last commit: $LC. "
533-
echo "| $BN | $BC | $AB | $BB | $LC | $PR |" >> $env:GITHUB_STEP_SUMMARY
534+
echo "| $BN | [$BC]($GitHubBaseUrl/$BC) | $AB | $BB | $LC | $PR |" >> $env:GITHUB_STEP_SUMMARY
534535

535536
}
536537

@@ -570,7 +571,7 @@ jobs:
570571
$BranchDiffHtmlUrl = "$($GitHubData.event.repository.html_url)/compare/$DefaultBranch...$($BN)#files_bucket"
571572

572573
Write-Host "$PR`: Branch name: $BN. Branch creator: $BC. Ahead by: $AB. Behind by: $BB. Days since last commit: $LC. "
573-
echo "| [$BN]($BranchDiffHtmlUrl) | $BC | $AB | $BB | $LC | $PR |" >> $env:GITHUB_STEP_SUMMARY
574+
echo "| [$BN]($BranchDiffHtmlUrl) | [$BC]($GitHubBaseUrl/$BC) | $AB | $BB | $LC | $PR |" >> $env:GITHUB_STEP_SUMMARY
574575

575576
}
576577

0 commit comments

Comments
 (0)