豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

ref(commits): Remove "Unable to Fetch Commits" email#113445

Open
leeandher wants to merge 1 commit intomasterfrom
leander/rm-commit-email
Open

ref(commits): Remove "Unable to Fetch Commits" email#113445
leeandher wants to merge 1 commit intomasterfrom
leander/rm-commit-email

Conversation

@leeandher
Copy link
Copy Markdown
Member

retires the "unable to fetch commits" email and locks the identity email's subject to "action required".

Delete the "Unable to Fetch Commits" email templates, debug view,
fixture, and the task code that sent it on fetch failures. The
colocated identity-invalid email stays but its subject is now
hardcoded to "Action Required", so the commit_failure flag and its
template branch are dead code and have been removed as well. Also
drops the now-unused get_emails_for_user_or_org helper and the
release param on fetch_commits_for_ref_with_lifecycle.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 20, 2026
)
emails = get_emails_for_user_or_org(user, release.organization_id)
msg.send_async(to=emails)
lifecycle.record_failure(e)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

does this capture a Sentry event, or some metric at least?

we need to monitor this somehow

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@bruno-garcia lifecycle.record_failure(e) will emit a metric and create a sentry error, so nothing is dropped. The other path with record_halt(e) just does the metric, which is also sufficient 👍

@leeandher leeandher marked this pull request as ready for review April 20, 2026 16:39
@leeandher leeandher requested review from a team as code owners April 20, 2026 16:39
@leeandher leeandher requested a review from a team April 20, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants