Skip to content

fix(github): emit resolvable co-author noreply emails - #1704

Merged
dcramer merged 1 commit into
mainfrom
fix/github-coauthor-noreply-identity
Sep 1, 2026
Merged

dcramer merged 1 commit into
mainfrom
fix/github-coauthor-noreply-identity

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Junior already stamps requester Co-Authored-By trailers, but they used the Slack/work email. Downstream automation (like sentry-cocoa's unreferenced-PR issue creator) needs a GitHub login to assign the human instead of the bot.

When a linked GitHub identity exists, prefer [email protected] in the trailer so assignee resolution is deterministic. Falls back to the existing actor email when no GitHub link is present.

Requested by Thomas Hedderwick.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Aug 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 Sep 1, 2026 10:20pm UTC

Request Review

@NinjaLikesCheez
NinjaLikesCheez marked this pull request as ready for review August 26, 2026 06:57
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 26, 2026
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: high PR risk score: high labels Aug 27, 2026

@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 54fd0c9. Configure here.

destination: context.destination,
events: input.events,
expiresAtMs: Date.now() + RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS,
intent: input.intent,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Resource subscriptions drop destination

High Severity

Plugin resourceEvents.subscribe() no longer passes destination into createResourceEventSubscription. That field is required to build the subscription id, store the Slack team, and match inbound events. Plugin-created watches, including GitHub PR follow-up after create, fail instead of routing events back to the conversation.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 54fd0c9. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not a regression from this PR. destination was intentionally removed from resource-event subscriptions in #1706 (fix(resource-events): let conversations own watch routing). Main and this branch both omit it; the store API no longer accepts destination. Bugbot is comparing against the pre-#1706 merge base.

When the current run actor has a linked GitHub identity, stamp Co-Authored-By
with [email protected] so downstream assignee automation can
resolve a login. Keep trailer generation pure and resolve the current user once
through the existing users.resolveActor contract.

Co-Authored-By: David Cramer <[email protected]>
@sentry-junior
sentry-junior Bot force-pushed the fix/github-coauthor-noreply-identity branch from 54fd0c9 to c36ec49 Compare September 1, 2026 22:19
@github-actions github-actions Bot added risk: high PR risk score: high and removed risk: medium PR risk score: medium labels Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

3 screenshot changes — 3 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Create Focused · Desktop
Conversation Create Focused · Desktop
Changed
Conversation Create Focused · Mobile
Conversation Create Focused · Mobile
Changed
System · Desktop
System · Desktop
Changed

@dcramer
dcramer merged commit 93807f1 into main Sep 1, 2026
40 checks passed
@dcramer
dcramer deleted the fix/github-coauthor-noreply-identity branch September 1, 2026 23:10
sentry-junior Bot added a commit that referenced this pull request Nov 16, 2026
… function

Reviewers keep removing test-only dependency injection, such as
`(deps.recordPolicyDenied ?? recordSandboxPolicyDenied)(...)` in
#3111, or the optional services in #1637,
#1671, #1695, #1704, and
#3404. policies/interface-design.md already forbids it, but
nothing failed.

`junior/no-service-fallback` rejects `x.y ?? fn`, `x.y || fn`, and
`{ y = fn }` parameter defaults, where `fn` is a camelCase import or a
module-level function. The 14 files that have the pattern today are listed
as exceptions in .oxlintrc.json. Remove an entry when you fix its file.

Co-Authored-By: David Cramer <[email protected]>
dcramer added a commit that referenced this pull request Nov 17, 2026
… function (#3523)

`junior/no-service-fallback` (oxlint) rejects `deps.x ?? fn`, `opts.x ||
fn`, and `{ x = fn }` parameter defaults, where `fn` is a camelCase
import or a module-level function. That is test-only dependency
injection, which `policies/interface-design.md` forbids. Past cases:
#3111, #1637, #1671,
#1695, #1704, #3404,
#2824.

This PR also removes 12 of the 14 fallbacks that exist today.

**Removed. The code calls the real function:**
- `slack/assistant-thread/status-send.ts`: `getSlackClient`.
- `slack/attachment-fetchers.ts`: `downloadPrivateSlackFile`.
- `task-execution/slack-work.ts`: `lookupSlackUser`.
- `tools/publish-image.ts`: `publicBaseUrl`. It reads
`resolveBaseUrl()`.

**Made required. The caller chooses:**
- `plugins/task-runner.ts`, `providers/slack/resume.ts`,
`task-execution/paused-turn.ts`: `sendPluginTask` and `wakePausedTurn`.
`createApp` picks the plugin task queue: Vercel Queue, or the in-process
queue from its `pluginTaskQueue` option. Behavior change: the Slack
webhook services now use that queue too. Before, they always used Vercel
Queue.
- `sandbox/egress/vercel.ts`: `verifyOidc`. The route passes the Vercel
verifier. Evals pass one with the real clock, because they replace
`Date`.
- `egress/credentialed.ts`: `recordAuthRequired`. Sandbox egress stores
a signal. Host plugin tools ask the person to connect.
- `junior-memory/src/embedding.ts`: `columns`. It is the table or a
subquery.
- `pi/request-prefix-attributes.ts`: the `hashJson` replacer.
- `ActivityChart.tsx`: the `formatLabel` function prop is now a `labels`
map. The component always formats.

**Kept as exceptions in `.oxlintrc.json`:**
- `cache-warming/warmup.ts` and `pi/traced-stream.ts` default the model
stream to `streamSimple`. The model stream is the one fake that
`policies/testing.md` allows. The shared model-stream harness gives each
agent run its own fake stream, and a module spy cannot do that per run.
Production never passes another stream, so a required parameter would
only add a restricted import to each composition root and an unused
argument to about 75 calls that mock the agent.

<!-- junior-request-attribution:start -->
via @dcramer.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A272ea6eeb1ea4fab7133690568688663 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A272ea6eeb1ea4fab7133690568688663)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A272ea6eeb1ea4fab7133690568688663/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: David Cramer <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — c36ec490 Deployed Sep 1, 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.

2 participants