Skip to content

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

Merged
adboio merged 1 commit intomainfrom
04-01-feat_code_persist_pr_urls_to_backend
Apr 3, 2026
Merged

feat(code): persist PR URLs to backend & emit file activity events#1434
adboio merged 1 commit intomainfrom
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"}

@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
@adboio adboio force-pushed the 04-01-feat_code_add_attribution_to_pr_body_from_ui branch from fea8dfe to af2751d Compare April 2, 2026 15:00
@adboio adboio force-pushed the 04-01-feat_code_persist_pr_urls_to_backend branch from b05db93 to 53f246d Compare April 2, 2026 15:01
@adboio adboio force-pushed the 04-01-feat_code_persist_pr_urls_to_backend branch from 53f246d to 1451a1a Compare April 3, 2026 00:15
@adboio adboio force-pushed the 04-01-feat_code_add_attribution_to_pr_body_from_ui branch 2 times, most recently from b634fac to d93a6fb Compare April 3, 2026 00:25
@adboio adboio force-pushed the 04-01-feat_code_persist_pr_urls_to_backend branch from 1451a1a to 08dc016 Compare April 3, 2026 00:26
@adboio adboio force-pushed the 04-01-feat_code_add_attribution_to_pr_body_from_ui branch from d93a6fb to 4798ef7 Compare April 3, 2026 00:32
@adboio adboio force-pushed the 04-01-feat_code_persist_pr_urls_to_backend branch from 08dc016 to 10ed46e Compare April 3, 2026 00:33
@adboio adboio force-pushed the 04-01-feat_code_add_attribution_to_pr_body_from_ui branch 2 times, most recently from 23ea7b7 to 9016536 Compare April 3, 2026 00:38
@adboio adboio force-pushed the 04-01-feat_code_persist_pr_urls_to_backend branch from 10ed46e to de03f96 Compare April 3, 2026 00:38
@adboio adboio changed the base branch from 04-01-feat_code_add_attribution_to_pr_body_from_ui to graphite-base/1434 April 3, 2026 00:46
@adboio adboio force-pushed the graphite-base/1434 branch from 9016536 to fa9a488 Compare April 3, 2026 00:47
@adboio adboio force-pushed the 04-01-feat_code_persist_pr_urls_to_backend branch from de03f96 to c6960fc Compare April 3, 2026 00:47
@graphite-app graphite-app bot changed the base branch from graphite-base/1434 to main April 3, 2026 00:47
@adboio adboio force-pushed the 04-01-feat_code_persist_pr_urls_to_backend branch from c6960fc to 38cd461 Compare April 3, 2026 00:47
@adboio adboio merged commit 9e0be66 into main Apr 3, 2026
16 checks passed
Copy link
Copy Markdown
Contributor Author

adboio commented Apr 3, 2026

Merge activity

@adboio adboio deleted the 04-01-feat_code_persist_pr_urls_to_backend branch April 3, 2026 00:56
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.

2 participants