Skip to content

fix(github): Attribute automation writes to the Automation run - #2235

Merged
dcramer merged 1 commit into
mainfrom
fix/github-automation-attribution
Oct 26, 2026
Merged

dcramer merged 1 commit into
mainfrom
fix/github-automation-attribution

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Automation writes to GitHub showed via Junior system actor `junior`. (for example on #2199). The Source of an automation run had no Automation id, so the GitHub plugin could only print the internal system actor name.

Event and scheduled automation Sources now carry automationId and automationRunId. The tool context also gets automationLink, which links to the Automation dashboard page. GitHub attribution for an automation run is now via [automation `<id>`](link) · Run ID `<run-id>`. Other system actors get no label.

Both Source fields are optional because Sources that were stored before this change do not have them.

via David Cramer.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Oct 26, 2026 7:28pm UTC

Request Review

@github-actions github-actions Bot added the risk: high PR risk score: high label Oct 26, 2026
@sentry-junior sentry-junior Bot changed the title fix(github): Attribute automation writes to the Automation version fix(github): Attribute automation writes to the Automation run Oct 26, 2026
Automation writes showed "via Junior system actor `junior`" because the
Source had no Automation id. Event and scheduled automation Sources now
carry the Automation id and run id, and the GitHub attribution links the
Automation and names the run. Other system actors get no label.

Co-Authored-By: David Cramer <david@sentry.io>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit af181a8. Configure here.

Comment thread packages/junior-github/src/tool-support/attribution.ts
@dcramer
dcramer merged commit 3757bb4 into main Oct 26, 2026
44 checks passed
@dcramer
dcramer deleted the fix/github-automation-attribution branch October 26, 2026 19:35

This branch was successfully deployed

1 active deployment
Preview – junior-docs — af181a87 Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant