Documentation
¶
Overview ¶
Command prfromissue opens pull requests for gh-aw fallback tracking issues and links the two together.
The agent-framework porting workflows run with a token that cannot open pull requests, so gh-aw's create-pull-request safe output pushes the branch and files a tracking issue containing a compare link instead. This tool scans the target repository's open issues that those workflows filed, opens the pull request from the pushed branch, sets its body to "Closes #<issue>", and comments the PR link back on the issue. When a PR already exists for the branch it links the two instead of opening a duplicate.
By default it targets microsoft/agent-framework-go and acts on every open issue opened by app/github-actions (the account that files the fallback issues); issues that do not parse as a fallback are skipped. Use -prefix to narrow to a single workflow's issues, or -issue-author to change/disable the author check.
Authentication uses the gh CLI: `gh auth login` locally, or the GH_TOKEN / GITHUB_TOKEN environment variable in CI.
Usage:
go install github.com/microsoft/agent-framework-go/cmd/prfromissue@latest prfromissue # open + link PRs for all fallback issues prfromissue -dry-run # preview without making changes prfromissue -prefix "[dotnet-code]" # limit to one workflow's issues prfromissue -draft # open the PRs as drafts