Skip to content

feat(#529): post workflow run links on issue/PR at start of agent run - #532

Closed
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/529-post-run-links
Closed

feat(#529): post workflow run links on issue/PR at start of agent run#532
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/529-post-run-links

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Each dispatch job (triage, code, review) now posts a comment on the triggering issue or PR with two links:

  1. The shim workflow run URL on the target repo 2. The dispatched agent workflow run URL on .fullsend

The dispatched run URL is discovered by polling gh run list up to 3 times (3s apart) after dispatch. If the run is not found, a fallback link to the workflow runs page is used instead.

Comments use per-agent HTML marker comments () for idempotent updates on retries — re-triggering the same agent updates the existing comment rather than posting a duplicate.

The step runs with if: always() so the shim URL is posted even when dispatch fails, aiding debugging.

Added issues: write and pull-requests: write permissions to support posting comments via GITHUB_TOKEN.

Note: pre-commit and actionlint could not run in-sandbox due to network restrictions. YAML syntax was validated. Manual verification of actionlint is required.

Closes #529

Changed files

  • internal/scaffold/fullsend-repo/templates/shim-workflow.yaml

Closes #529

Post-script verification

  • Branch is not main/master (agent/529-post-run-links)
  • Secret scan passed (gitleaks — 5f59d83366582321f8da8879f07f7ec9370f2494..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

Created by fullsend code agent

Each dispatch job (triage, code, review) now posts a comment on the
triggering issue or PR with two links:

1. The shim workflow run URL on the target repo
2. The dispatched agent workflow run URL on .fullsend

The dispatched run URL is discovered by polling gh run list up to
3 times (3s apart) after dispatch. If the run is not found, a
fallback link to the workflow runs page is used instead.

Comments use per-agent HTML marker comments
(<!-- fullsend:run-links:<agent> -->) for idempotent updates on
retries — re-triggering the same agent updates the existing comment
rather than posting a duplicate.

The step runs with if: always() so the shim URL is posted even when
dispatch fails, aiding debugging.

Added issues: write and pull-requests: write permissions to support
posting comments via GITHUB_TOKEN.

Note: pre-commit and actionlint could not run in-sandbox due to
network restrictions. YAML syntax was validated. Manual verification
of actionlint is required.

Closes #529
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Apr 29, 2026
@github-actions

Copy link
Copy Markdown

Site preview

Preview: https://1fddba04-site.fullsend-ai.workers.dev

Commit: ecabe360d1ad9459ad9c8cf3b06c26eb140fc359

@rh-hemartin

Copy link
Copy Markdown
Member

I'll do this myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Triggers review agent dispatch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agents should post workflow run links on issue/PR at start of run

1 participant