You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@phpstan-bot Update the org-wide workflow. After it finishes the work in parallel I want to post a comment on the #2 issue with all the PRs it opened in a bulleted list.
Have the parallelized workflow gather outputs in artifacts and then the final step should download the artifacts and produce the comment programatically.
Changes made to .github/workflows/claude-org-wide.yml:
"Record existing PRs" step — before Claude runs on each repo, records all currently open PR numbers to /tmp/existing-prs.txt as a baseline
"Capture new PR URL" step — after Claude finishes (runs even if Claude fails via if: always()), diffs the current open PRs against the baseline to find any newly created PRs, writes URLs to pr-output/pr-url.txt
"Upload PR URL artifact" step — uploads the PR URL file as a uniquely-named artifact per repo (e.g., pr-url-phpstan-extension-installer), with if-no-files-found: ignore so repos without new PRs don't fail
New post-comment job — runs after all matrix jobs complete, downloads all pr-url-* artifacts, iterates through them to collect PR URLs, and posts a bulleted list comment on issue Organization-wide workflows #2
@phpstan-bot I think the react on comment workflow could tell Claude to output the one PR it created in a readable manner to a file and upload-artifact action could upload the file. No need to diff all PRs before and after.
Changes made to .github/workflows/claude-org-wide.yml:
Updated Claude prompt (step 5) — instructs Claude to write the PR URL to /tmp/pr-url.txt after creating the PR, instead of diffing PRs before/after
"Sanitize repo name" step — converts phpstan/repo-name to phpstan-repo-name for artifact naming
"Upload PR URL artifact" step — uploads /tmp/pr-url.txt as a uniquely-named artifact per repo, with if-no-files-found: ignore so repos without PRs don't fail
New post-comment job — runs after all matrix jobs complete, downloads all pr-url-* artifacts, collects URLs, and posts a bulleted list comment on issue Organization-wide workflows #2
Activity
phpstan-bot commentedon Feb 19, 2026
Claude finished @ondrejmirtes's task in 4m 17s —— View job •
claude/issue-13-20260219-1117• Create PR ➔Updated org-wide workflow to post PR summary comment
Changes made to
.github/workflows/claude-org-wide.yml:/tmp/existing-prs.txtas a baselineif: always()), diffs the current open PRs against the baseline to find any newly created PRs, writes URLs topr-output/pr-url.txtpr-url-phpstan-extension-installer), withif-no-files-found: ignoreso repos without new PRs don't failpost-commentjob — runs after all matrix jobs complete, downloads allpr-url-*artifacts, iterates through them to collect PR URLs, and posts a bulleted list comment on issue Organization-wide workflows #2|
Add post-run comment with PR links on issue #2
ondrejmirtes commentedon Feb 19, 2026
@phpstan-bot I think the react on comment workflow could tell Claude to output the one PR it created in a readable manner to a file and upload-artifact action could upload the file. No need to diff all PRs before and after.
phpstan-bot commentedon Feb 19, 2026
Claude finished @ondrejmirtes's task in 2m 51s —— View job •
claude/issue-13-20260219-1123Simplified PR URL collection in org-wide workflow
/tmp/pr-url.txtpost-commentjob to collect artifacts and post PR links on issue Organization-wide workflows #2Changes made to
.github/workflows/claude-org-wide.yml:/tmp/pr-url.txtafter creating the PR, instead of diffing PRs before/afterphpstan/repo-nametophpstan-repo-namefor artifact naming/tmp/pr-url.txtas a uniquely-named artifact per repo, withif-no-files-found: ignoreso repos without PRs don't failpost-commentjob — runs after all matrix jobs complete, downloads allpr-url-*artifacts, collects URLs, and posts a bulleted list comment on issue Organization-wide workflows #2Create PR
|
claude/issue-13-20260219-1123Simplify PR URL collection: have Claude output URL to file
Simplify PR URL collection: have Claude output URL to file