Skip to content

Update activation footer: add workflow URL, source link, and run ID#4440

Closed
Copilot wants to merge 5 commits into
mainfrom
copilot/update-agentic-message-footer
Closed

Update activation footer: add workflow URL, source link, and run ID#4440
Copilot wants to merge 5 commits into
mainfrom
copilot/update-agentic-message-footer

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 20, 2025

Update "Agentic ... started" Message Footer - Complete ✅

Final Implementation

  • Changed "Agentic" to "Agentic Workflow" for clarity
  • Workflow name now links to the workflow page in Actions tab
  • Added source link to the .md file
  • Added run ID link to the specific run
  • Recompiled all 86 workflows

Changes Made

  1. Added GH_AW_WORKFLOW_FILE environment variable to pass lock filename
  2. Updated buildWorkflowLinkText() function to construct workflow URL from run URL
  3. Updated all three event handlers to pass workflow file parameter
  4. Updated tests to verify new format
  5. Recompiled all workflows to include the new footer format

New Message Format

Agentic Workflow [Test Workflow](workflowUrl) ([source](sourceUrl), [run #12345](runUrl)) triggered by this issue.

Where:

  • [Test Workflow] links to the workflow page in Actions tab (/actions/workflows/test.lock.yml)
  • [source] links to the workflow source file (/tree/main/.github/workflows/test.md)
  • [run #12345] links to the specific workflow run (/actions/runs/12345)

Implementation Details

The workflow URL is constructed by replacing /runs/{runId} with /workflows/{lockFilename} in the run URL:

  • Input: https://github.com/owner/repo/actions/runs/12345
  • Lock filename: test.lock.yml
  • Output: https://github.com/owner/repo/actions/workflows/test.lock.yml

Files Modified

  1. pkg/workflow/compiler_jobs.go - Added GH_AW_WORKFLOW_FILE environment variable
  2. pkg/workflow/js/add_reaction_and_edit_comment.cjs - Updated URL construction logic
  3. pkg/workflow/js/add_reaction_and_edit_comment.test.cjs - Updated test expectations
  4. All 86 .lock.yml files - Recompiled with new format

Test Results

✅ All JavaScript tests pass (1078/1078)
✅ All Go unit tests pass
✅ Code formatted and linted
✅ Manual compilation verified
✅ All 86 workflows recompiled successfully

Original prompt

Update the "Agentic ... started" message footer added to the message with the following:

  • add a link to the agentic workflow source file (use commit url to GitHub.com), this is the url with a name.
  • the run id and url (already in the url shown but set runid as url text)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits November 20, 2025 22:16
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update footer in Agentic started message Add workflow source link and run ID to activation comment footer Nov 20, 2025
Copilot AI requested a review from pelikhan November 20, 2025 22:24
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot the first link should be the agentic workflow link inferred from the running workflow action url.

Also "Agentic ..." to "Agentic Workflow ..."

…w" text

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 21, 2025

@copilot the first link should be the agentic workflow link inferred from the running workflow action url.

Also "Agentic ..." to "Agentic Workflow ..."

Updated in commit 7735f9c:

  1. ✅ Workflow name now links to the source file (.md file in GitHub tree view)
  2. ✅ Changed "Agentic" to "Agentic Workflow"

New format:

Agentic Workflow [Test Workflow](sourceUrl) ([run #12345](runUrl)) triggered by this issue.

Where:

  • [Test Workflow] links to the workflow source file
  • [run #12345] links to the workflow run

Copilot AI changed the title Add workflow source link and run ID to activation comment footer Update activation footer: workflow name links to source, add "Workflow" text Nov 21, 2025
@pelikhan
Copy link
Copy Markdown
Collaborator

The workflow url is missing

@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot comment above

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 21, 2025

The workflow url is missing

Added in commit f57a4c4. The workflow name now links to the workflow page in the Actions tab.

New format:

Agentic Workflow [Test Workflow](workflowUrl) ([source](sourceUrl), [run #12345](runUrl)) triggered by this issue.

Where:

  • [Test Workflow]/actions/workflows/test.lock.yml (workflow page)
  • [source]/tree/main/.github/workflows/test.md (source file)
  • [run #12345]/actions/runs/12345 (specific run)

@copilot comment above

Fixed in commit f57a4c4. The workflow URL is now included as the primary link for the workflow name.

Copilot AI changed the title Update activation footer: workflow name links to source, add "Workflow" text Update activation footer: add workflow URL, source link, and run ID Nov 21, 2025
@pelikhan pelikhan added the smoke label Nov 21, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 21, 2025

✅ Agentic Workflow Changeset Generator completed successfully.

@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot recompile

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 21, 2025

@copilot recompile

All 86 workflows already recompiled in commit f57a4c4. The lock files include the updated activation footer with workflow URL, source link, and run ID.

@pelikhan pelikhan closed this Nov 21, 2025
@pelikhan pelikhan deleted the copilot/update-agentic-message-footer branch November 22, 2025 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants