Skip to content

release(v3): [2/4] Add support for return_run_details - #171

Merged
lasith-kg merged 3 commits into
mainfrom
release/v3-2-dispatch-workflow
Jul 14, 2026
Merged

release(v3): [2/4] Add support for return_run_details#171
lasith-kg merged 3 commits into
mainfrom
release/v3-2-dispatch-workflow

Conversation

@lasith-kg

@lasith-kg lasith-kg commented Jul 14, 2026

Copy link
Copy Markdown
Owner

📚 PR Train

This PR is part of a stacked PR train delivering the v3 release. Review/merge bottom-up in order:

# PR Change Base
1 #170 Modernize repository to actions/typescript (ESM + Node 24) main
2 👉 #171 (this PR) Add support for return_run_details release/v3-1-node-24
3 #172 Remove dead error handling code release/v3-2-dispatch-workflow
4 #173 v3 release (combined → main) main

⚠️ PRs 1–3 are stacked (each targets the one above). PR #173 is the combined branch that actually merges into main.


Uses GitHub's new return_run_details behaviour so workflow_dispatch gets the dispatched run's ID and URL straight from the API response — no more distinct-ID/run-name discovery workaround.

Highlights

  • workflowDispatch reads run details from the dispatch response (return_run_details: true), returning { id, htmlUrl } directly.
  • Discovery loop removed for workflow_dispatch — no distinct_id injection or run-listing/polling; that path is now repository_dispatch-only.
  • Docs — README adds return_run_details background and a "Migrating from v2 to v3" section.

Depends on GitHub's return_run_details support — see the changelog announcement (2026-02-19; default from 2026-03-10). Existing run_id / run_url outputs are unchanged.

Base automatically changed from release/v3-1-node-24 to main July 14, 2026 15:13
@lasith-kg
lasith-kg merged commit 73c9e65 into main Jul 14, 2026
1 check passed
@lasith-kg
lasith-kg deleted the release/v3-2-dispatch-workflow branch July 14, 2026 15:13
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.

1 participant