Skip to content

Link backticked values in branch workflow summary#3091

Merged
DRSDavidSoft merged 1 commit into
masterfrom
copilot/add-links-for-values
Jun 14, 2026
Merged

Link backticked values in branch workflow summary#3091
DRSDavidSoft merged 1 commit into
masterfrom
copilot/add-links-for-values

Conversation

Copilot AI commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

The branch update workflow summary rendered branch and commit values as plain backticked text, which made the key navigation targets non-clickable. This updates the summary so branch names, commit SHA, and actor references remain code-styled while linking to their GitHub destinations.

  • Summary links

    • Wrap the existing backticked master, development, and commit SHA values in markdown links instead of rendering them as plain code text.
    • Link the actor handle to the corresponding GitHub profile.
  • Success message links

    • Apply the same linked backticked branch formatting in the post-merge success text so the summary stays consistent end-to-end.
  • Implementation shape

    • Build canonical repository, branch, actor, and commit URLs once in the workflow step, then reuse them in the emitted markdown.
echo "| Source Branch | [\`master\`]($source_branch_url) |" >> $GITHUB_STEP_SUMMARY
echo "| Commit | [\`${{ github.sha }}\`]($commit_url) |" >> $GITHUB_STEP_SUMMARY

@DRSDavidSoft DRSDavidSoft marked this pull request as ready for review June 14, 2026 15:41
Copilot AI review requested due to automatic review settings June 14, 2026 15:41
@DRSDavidSoft DRSDavidSoft merged commit e33c42a into master Jun 14, 2026
1 check passed
@DRSDavidSoft DRSDavidSoft deleted the copilot/add-links-for-values branch June 14, 2026 15:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the “Update branches” GitHub Actions workflow summary so key values (branches, commit SHA, actor) remain code-styled while becoming clickable links to their corresponding GitHub pages.

Changes:

  • Add computed repository/branch/actor/commit URLs for reuse in workflow summary output.
  • Replace plain backticked branch/commit entries with backticked markdown links in the summary table.
  • Apply the same linked formatting in the post-merge success message for consistency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +32 to +43
actor_url="${{ github.server_url }}/${{ github.actor }}"
commit_url="$repo_url/commit/${{ github.sha }}"

echo "## 🔀 Update Branches - Workflow Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Merge Operation" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Property | Value |" >> $GITHUB_STEP_SUMMARY
echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
echo "| Source Branch | \`master\` |" >> $GITHUB_STEP_SUMMARY
echo "| Target Branch | \`development\` |" >> $GITHUB_STEP_SUMMARY
echo "| Triggered by | @${{ github.actor }} |" >> $GITHUB_STEP_SUMMARY
echo "| Commit | \`${{ github.sha }}\` |" >> $GITHUB_STEP_SUMMARY
echo "| Source Branch | [\`master\`]($source_branch_url) |" >> $GITHUB_STEP_SUMMARY
echo "| Target Branch | [\`development\`]($target_branch_url) |" >> $GITHUB_STEP_SUMMARY
echo "| Triggered by | [@${{ github.actor }}]($actor_url) |" >> $GITHUB_STEP_SUMMARY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants