Skip to content

feat(code): persist PR URLs to backend & emit file activity events#1434

Open
adboio wants to merge 1 commit into04-01-feat_code_add_attribution_to_pr_body_from_uifrom
04-01-feat_code_persist_pr_urls_to_backend
Open

feat(code): persist PR URLs to backend & emit file activity events#1434
adboio wants to merge 1 commit into04-01-feat_code_add_attribution_to_pr_body_from_uifrom
04-01-feat_code_persist_pr_urls_to_backend

Conversation

@adboio
Copy link
Copy Markdown
Contributor

@adboio adboio commented Apr 1, 2026

Problem

when agents create PRs, we detect the URLs from bash output and store them on the backend

but when created via UI in posthog code, we do no such thing

also, we generally need a better way to correlate local tasks to branches (and therefore PRs)

Changes

when PRs are created via UI, call updateTaskRun with the PR URL

i accidentally also combined this with the change to emit events on file changes (which helps build a "loose" task<>branch association)

How did you test this?

created PR via UI, verified task in db:

{"pr_url": "https://github.com/PostHog/posthog/pull/53123"}

Copy link
Copy Markdown
Contributor Author

adboio commented Apr 1, 2026

@adboio adboio requested a review from a team April 1, 2026 22:13
@adboio adboio marked this pull request as ready for review April 1, 2026 22:13
@adboio adboio force-pushed the 04-01-feat_code_persist_pr_urls_to_backend branch from fde3cd3 to b05db93 Compare April 1, 2026 23:24
@adboio adboio changed the title feat(code): persist PR URLs to backend feat(code): persist PR URLs to backend & emit file activity events Apr 1, 2026
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