Skip to content

Commit cc18f0d

Browse files
authored
Add link to view branch in delete table
1 parent f11c953 commit cc18f0d

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/Shared-StaleBranch.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,18 @@ jobs:
540540
$BC = $BranchReport.BranchCreator
541541

542542
Write-Host "$PR`: Branch name: $BN. Branch creator: $BC. Ahead by: $AB. Behind by: $BB. Days since last commit: $LC. On $FriendlyDeletionDate`: ($DD)."
543-
echo "| $BN | $AB | $BB | $LC<br>($DD) | $PR |" >> $env:GITHUB_STEP_SUMMARY
543+
544+
If ($DeletionRun) {
545+
546+
echo "| $BN | $AB | $BB | $LC<br>($DD) | $PR |" >> $env:GITHUB_STEP_SUMMARY
547+
548+
} Else {
549+
550+
$BranchViewUrl = "$($GitHubData.event.repository.html_url)/branches/all?query=$BN"
551+
552+
echo "| [$BN]($BranchViewUrl) | $AB | $BB | $LC<br>($DD) | $PR |" >> $env:GITHUB_STEP_SUMMARY
553+
554+
}
544555

545556
}
546557

0 commit comments

Comments
 (0)