Skip to content

Release: staging -> main (2026-06-09 06:42)#981

Open
github-actions[bot] wants to merge 21 commits into
mainfrom
staging
Open

Release: staging -> main (2026-06-09 06:42)#981
github-actions[bot] wants to merge 21 commits into
mainfrom
staging

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Summary

Promotes staging into main.

  • Source branch: staging
  • Target branch: main
  • Generated by npm run pr:promote

Included PRs

Compare

google-labs-jules Bot and others added 8 commits June 4, 2026 04:40
🎯 What: Extracted formatCaughtError from papers.ts to a dedicated errors.ts utility file and added comprehensive unit tests to close a testing gap.
📊 Coverage: Added unit test cases to cover standard Error objects, custom Error objects, string errors, numbers, null/undefined values, and generic objects.
✨ Result: Increased test coverage for error utility formatting, reducing regression risk by having deterministic tests that confirm the safety net catches errors reliably.

Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
Bumps the github-actions-all group with 1 update: [codecov/codecov-action](https://github.com/codecov/codecov-action).


Updates `codecov/codecov-action` from 6 to 7
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v6...v7)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions-all
...

Signed-off-by: dependabot[bot] <support@github.com>
…5ad269

🧪 Extract formatCaughtError and add unit tests
@github-actions github-actions Bot added automated Automated main-to-staging sync PR release Release promotion PR labels Jun 9, 2026
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
open-shelf Ignored Ignored Jun 9, 2026 6:42am

@dosubot dosubot Bot added the javascript Pull requests that update javascript code label Jun 9, 2026
@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread apps/api/src/utils/errors.ts Outdated
Comment on lines +1 to +5
export function formatCaughtError(error: unknown): string {
return error instanceof Error
? `${error.name}: ${error.message}`
: String(error);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 非 Error オブジェクトの文字列化に String(value) を使用しているため、{ code: 500, message: "DB timeout" } のようなプレーンオブジェクトがスローされた場合、ログには "[object Object]" しか残らず、デバッグに役立つ情報が完全に失われます。テストのコメントでも "intentionally" と記されていますが、JSON.stringify でフォールバックすることで同様の後方互換性を保ちつつ有用な情報を残せます。

Suggested change
export function formatCaughtError(error: unknown): string {
return error instanceof Error
? `${error.name}: ${error.message}`
: String(error);
}
export function formatCaughtError(error: unknown): string {
if (error instanceof Error) {
return `${error.name}: ${error.message}`;
}
try {
return JSON.stringify(error);
} catch {
return String(error);
}
}
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/api/src/utils/errors.ts
Line: 1-5

Comment:
非 Error オブジェクトの文字列化に `String(value)` を使用しているため、`{ code: 500, message: "DB timeout" }` のようなプレーンオブジェクトがスローされた場合、ログには `"[object Object]"` しか残らず、デバッグに役立つ情報が完全に失われます。テストのコメントでも "intentionally" と記されていますが、`JSON.stringify` でフォールバックすることで同様の後方互換性を保ちつつ有用な情報を残せます。

```suggestion
export function formatCaughtError(error: unknown): string {
  if (error instanceof Error) {
    return `${error.name}: ${error.message}`;
  }
  try {
    return JSON.stringify(error);
  } catch {
    return String(error);
  }
}
```

How can I resolve this? If you propose a fix, please make it concise.

…hub-actions-all-484570b1b1

chore(deps): bump codecov/codecov-action from 6 to 7 in the github-actions-all group
@github-actions github-actions Bot changed the title Release: staging -> main (2026-06-09 01:30) Release: staging -> main (2026-06-09 01:36) Jun 9, 2026
google-labs-jules Bot and others added 2 commits June 9, 2026 01:37
Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
…680999085744576

chore: prevent false positive TODO in OSV auto fix workflow comment
@github-actions github-actions Bot changed the title Release: staging -> main (2026-06-09 01:36) Release: staging -> main (2026-06-09 03:37) Jun 9, 2026
@github-actions github-actions Bot changed the title Release: staging -> main (2026-06-09 03:37) Release: staging -> main (2026-06-09 06:42) Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated Automated main-to-staging sync PR javascript Pull requests that update javascript code release Release promotion PR size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant