Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
de98a89
fix(ci): prune unused rimraf lockfile entries (#26247)
nicohrubec Nov 10, 2026
2c2688c
fix(core): Forward client IP headers from the tunnel so Sentry SaaS r…
chargome Nov 10, 2026
9154110
ref(server-utils): Use shared stream state and endStreamSpan for Bedr…
andreiborza Nov 10, 2026
6b42ee7
feat(tanstackstart-react): Initialize the SDK when the Nitro server s…
sentry-junior[bot] Nov 10, 2026
aba9efb
chore: Revert add catch-all rule for shared packages in CODEOWNERS (#…
msonnb Nov 10, 2026
b31ae89
docs(browser): Fix `enableLongAnimationFrame` default in JSDoc (#26256)
sentry-junior[bot] Nov 10, 2026
619b3aa
Merge pull request #26254 from getsentry/master
github-actions[bot] Nov 10, 2026
52948fa
fix(bundler-plugins): Keep uploading when a directory has no source m…
sentry-junior[bot] Nov 10, 2026
bcf7aea
fix(server-utils): Record Anthropic chat spans for thread and tool-ru…
RulaKhaled Nov 10, 2026
e02e745
feat(bundler-plugins): Enable external source maps and delete them af…
timfish Nov 10, 2026
9face8a
fix(astro, cloudflare): Run the Cloudflare SDK on the server for Clou…
logaretm Nov 10, 2026
44a9081
feat(core): capture MCP OAuth client names per request (#24508)
betegon Nov 11, 2026
4ccdb35
fix(cloudflare): Skip auto-instrument warning for TanStack Start tunn…
msonnb Nov 11, 2026
29f7386
chore(ci): Add Warden gha-security-review and skill-scanner (#26269)
sentry-junior[bot] Nov 11, 2026
3ba8774
feat(deps): Bump node-forge from 1.4.2 to 1.4.3 (#26267)
dependabot[bot] Nov 11, 2026
291da8d
chore(deps): Record the `node-abort-controller` deprecation in the lo…
logaretm Nov 11, 2026
b31b20b
chore(ci): Assign 3 PR reviewers via workflow (#26268)
sentry-junior[bot] Nov 11, 2026
d6d803c
fix(bundler-plugins): Stop defaulting `url` to sentry.io (#26252)
sentry-junior[bot] Nov 11, 2026
638bf22
fix(anthropic): End and mark messages.stream() span as cancelled on a…
sentry-junior[bot] Nov 11, 2026
15f3d8d
fix(browser): Instrument empty-URL XHR and show the page URL in bread…
kunal649 Nov 11, 2026
20a5f10
chore: Add external contributor to CHANGELOG.md (#26275)
javascript-sdk-gitflow[bot] Nov 11, 2026
9248119
fix(browser): Handle parentheses in function names in stack parsers (…
msonnb Nov 11, 2026
9f59336
feat(cloudflare): Instrument `trace` and `tailStream` handlers (#26250)
isaacs Nov 11, 2026
23a97ce
fix(server-utils): Instrument deps excluded from the Vite dep optimiz…
isaacs Nov 11, 2026
6045cab
test(e2e): Assert source map stripping for Next.js and TanStack Start…
timfish Nov 11, 2026
73c9cd7
test(e2e): Pin pi to 1.4.0 for node-flue (latest) (#26237)
sentry-junior[bot] Nov 11, 2026
71da049
fix(solidstart): Keep build-time tooling out of SolidStart 2 server b…
sentry-junior[bot] Nov 11, 2026
6ee26d6
chore: Exempt Sentry packages from release-age checks (#26274)
nicohrubec Nov 11, 2026
313b2f1
fix(ci): separate x64 and ARM64 dependency cache keys (#26282)
nicohrubec Nov 11, 2026
1873c1d
ci: Cache the Node.js install instead of fetching it in every job (#2…
sentry-junior[bot] Nov 11, 2026
b0d975d
fix(opentelemetry): Keep live context link when passing a scope to wi…
msonnb Nov 11, 2026
187ee90
feat(nextjs): Emit the tunnel route handler (#25424)
logaretm Nov 11, 2026
edae47f
feat(aws-serverless): Add HTTP request and response attributes to fun…
sentry-junior[bot] Nov 11, 2026
f8eb545
feat(sveltekit): Mark pageloads of prerendered pages (#26301)
s1gr1d Nov 11, 2026
0a1b500
test(scripts): Pass compare fn to sort in assign-reviewers tests (#26…
sentry-junior[bot] Nov 11, 2026
da4000b
fix(server-utils): Read GLOBAL_OBJ at call time in Nitro integration …
msonnb Nov 11, 2026
2b878f1
fix(cloudflare): Have `@flue/runtime` provide its own namespace (#25935)
mydea Nov 11, 2026
86c5981
feat(aws-serverless): Ignore static asset and preflight invocations b…
sentry-junior[bot] Nov 11, 2026
fc01bd9
chore: Switch to rolldown (#20775)
logaretm Nov 11, 2026
c491307
fix(browser): Send same-origin string tunnels as `application/x-sentr…
logaretm Nov 11, 2026
480d930
chore(deno): Note that OTel setup defaulting to on is unintentional (…
sentry-junior[bot] Nov 11, 2026
8832e97
test(e2e): Run nestjs-12 on Bun, Deno and Cloudflare (#26283)
sentry-junior[bot] Nov 12, 2026
27bc7cb
fix(core): Set `url.scheme` without colon and `url.port` as a number …
sentry-junior[bot] Nov 12, 2026
36fcc6f
ref(server-utils): Extract pi-ai chat span helpers from pi-durable (#…
mydea Nov 12, 2026
363bb22
feat(server-utils): Add pi-ai integration (#25937)
mydea Nov 12, 2026
a5d2d5c
feat(server-utils): Enable pi-ai by default & use it for Flue & pi-du…
mydea Nov 12, 2026
0612441
chore(ci): Assign Junior PRs to their requester and skip them as revi…
sentry-junior[bot] Nov 12, 2026
5e291ea
fix(browser): Accept managed tunnel options in the `BrowserClient` co…
logaretm Nov 12, 2026
6bee2f2
test(cloudflare): Run the SDK on the new module registry (#26212)
sentry-junior[bot] Nov 12, 2026
359fbe4
chore(dev-deps): Replace madge with oxlint import/no-cycle (#26317)
sentry-junior[bot] Nov 12, 2026
3e2f711
test(nuxt): Add vue-router to Nuxt 5 E2E apps (#26323)
sentry-junior[bot] Nov 12, 2026
621a801
chore(deps): Run yalc via pnpm dlx instead of a root devDependency (#…
sentry-junior[bot] Nov 12, 2026
f49009b
fix(server-runtime-injection): Register the CJS loader hook from the …
timfish Nov 12, 2026
7b18bf0
fix(nextjs): Inject build values into instrumentation for an external…
JPeer264 Nov 13, 2026
c76d196
fix(nextjs): Run Turbopack loaders in worker threads on Bun (#26293)
JPeer264 Nov 13, 2026
8fff8bf
feat(nextjs): Use the Bun integrations when Next.js runs on Bun (#26294)
JPeer264 Nov 13, 2026
c9e61e3
feat(nextjs): Use the Deno fetch integration when Next.js runs on Den…
JPeer264 Nov 13, 2026
82c7b4a
chore(deps): Record the postcss-selector-parser 7.2.0 deprecation in …
timfish Nov 13, 2026
7a37943
chore(dev-deps): Replace nodemon with tsx watch (#26322)
sentry-junior[bot] Nov 13, 2026
60f2958
ref(server-runtime-injection): Say when hook registration fails becau…
sentry-junior[bot] Nov 13, 2026
c781d69
feat(deps): Bump @hono/node-server from 2.1.5 to 2.1.7 (#26331)
dependabot[bot] Nov 13, 2026
73e928a
chore(deps-dev): Bump hono from 4.13.11 to 4.13.16 (#26340)
dependabot[bot] Nov 13, 2026
a72b2d8
feat(nuxt): Instrument Nitro v3 cache storage (#25951)
sentry-junior[bot] Nov 13, 2026
90c9bf0
chore(build): Remove build:watch scripts (#26350)
sentry-junior[bot] Nov 13, 2026
cb9e84c
fix(core): Always return a string from `_enhanceErrorWithSentryInfo` …
bardrop Nov 13, 2026
4ab39ab
chore: Add external contributor to CHANGELOG.md (#26351)
javascript-sdk-gitflow[bot] Nov 13, 2026
f5a7152
chore(ci): Move reviewer routing out of CODEOWNERS (#26346)
sentry-junior[bot] Nov 13, 2026
7dcc4b1
feat(nuxt): Mark pageloads of cached pages (#26305)
s1gr1d Nov 13, 2026
5808281
fix(browser): Skip CLS on browsers without Array.prototype.at (#26347)
sentry-junior[bot] Nov 13, 2026
ccb0acc
chore(ci): Never auto-request HazAT as reviewer (#26353)
sentry-junior[bot] Nov 13, 2026
4f5b3fd
chore(dev-deps): Replace npm-run-all2 with pnpm script selectors (#26…
sentry-junior[bot] Nov 13, 2026
d1ece26
docs(aws-serverless): Use Lambda Event Functions naming in README (#2…
sentry-junior[bot] Nov 13, 2026
d36fbf9
chore(build): Replace es-check with an acorn-based script (#26321)
sentry-junior[bot] Nov 13, 2026
e77c78a
feat(node): Publish flat CJS builds to cut `@sentry/node` startup tim…
isaacs Nov 13, 2026
86c084b
feat(node): Capture the original job error for failed BullMQ jobs (#2…
sentry-junior[bot] Nov 13, 2026
ddbfdac
test(nextjs): Run the source map upload e2e test on Bun (#26344)
JPeer264 Nov 13, 2026
88cc648
chore(bundler-plugins): Type-check tests via lint:types (#26345)
mydea Nov 13, 2026
239efed
feat(sveltekit): Mark pageloads of prerendered pages (#26307)
s1gr1d Nov 13, 2026
ed74679
chore: Use What/Why structure in PR template (#26348)
andreiborza Nov 13, 2026
9279303
feat(bundler-plugins): Delete source maps with `deleteSourcemapsAfter…
timfish Nov 13, 2026
c7d73e4
feat(server-utils): Record Bedrock prompts, system instructions, and …
andreiborza Nov 13, 2026
97b275d
fix(server-utils): Use the client's provider name for Anthropic platf…
sentry-junior[bot] Nov 13, 2026
f94f11e
test(nextjs): Cover the server request link of a late trace meta tag …
s1gr1d Nov 13, 2026
52bd8e8
fix(replay): Minify the compression worker to ES2020 (#26355)
msonnb Nov 13, 2026
075093d
ref: Share the cache origin helpers of Next.js, Nuxt and SvelteKit (#…
s1gr1d Nov 13, 2026
6a4315b
fix(server-utils): Mark AI spans as cancelled when the caller aborts …
sentry-junior[bot] Nov 13, 2026
14e0d56
feat(node): Instrument HTTP/2 servers that use the compat API (#25992)
timfish Nov 13, 2026
a36dd15
fix(bundler-plugins): Skip default commit association on Vercel build…
sentry-junior[bot] Nov 16, 2026
f843dc6
chore(ci): Skip busy users when assigning PR reviewers (#26358)
sentry-junior[bot] Nov 16, 2026
9cc4d87
chore(deps): Bump `@sentry/conventions` to 0.33.0 (#26374)
sentry-junior[bot] Nov 16, 2026
d1d5d80
test(e2e): Run OTel SDK E2E apps on SDK v3 with an SDK v2 variant (#2…
andreiborza Nov 16, 2026
b1e12e3
fix(server-utils): Record output of Workers AI chat-completion respon…
andreiborza Nov 16, 2026
c0501fc
test(e2e): Trim tracer provider variants down to node-express (#26385)
sentry-junior[bot] Nov 16, 2026
aba93bc
chore(ci): Align Node 27 integration test sharding (#26375)
nicohrubec Nov 16, 2026
005db14
test(nitro): Move tunnel e2e tests into a dedicated nitro-3-tunnel ap…
sentry-junior[bot] Nov 16, 2026
426af09
feat(cloudflare): Continue the Cloudflare trace of the invocation (#2…
JPeer264 Nov 16, 2026
2a0c6f3
test(cloudflare): Add e2e test for the Cloudflare trace id without tr…
JPeer264 Nov 16, 2026
de1f8e3
perf(ci): Shard slow Nuxt and Next.js E2E variants (#26376)
nicohrubec Nov 16, 2026
481baf4
perf(ci): Pack tarballs in the build job (#26377)
nicohrubec Nov 16, 2026
3289732
perf(ci): Increase integration test sharding (#26378)
nicohrubec Nov 16, 2026
6e01c2e
perf(ci): Build CDN bundles in the main build job (#26379)
nicohrubec Nov 16, 2026
dd306ed
test(solidstart): Move tunnel e2e tests into dedicated solidstart tun…
sentry-junior[bot] Nov 16, 2026
387a111
test(sveltekit): Move tunnel e2e tests into a dedicated sveltekit-3-t…
sentry-junior[bot] Nov 16, 2026
b40f182
test(tanstackstart-react): Move tunnel e2e tests into a dedicated tan…
sentry-junior[bot] Nov 16, 2026
0607fb6
test(astro): Move tunnel e2e tests into a dedicated astro tunnel app …
sentry-junior[bot] Nov 16, 2026
12b944c
test(react-router): Move tunnel e2e tests into a dedicated react-rout…
sentry-junior[bot] Nov 16, 2026
c5aca32
test(remix): Move tunnel e2e tests into a dedicated remix-v3-tunnel a…
sentry-junior[bot] Nov 16, 2026
e7ce399
test(nuxt): Move tunnel e2e tests into dedicated nuxt tunnel apps (#2…
sentry-junior[bot] Nov 16, 2026
7ea03b0
fix(cloudflare): Capture errors that fail a workflow run outside a st…
JPeer264 Nov 16, 2026
918ecd1
chore(deps-dev): Bump @nuxt/schema from 3.21.11 to 4.6.4 (#26370)
dependabot[bot] Nov 16, 2026
943743b
chore: Add external contributor to CHANGELOG.md (#26400)
sentry-junior[bot] Nov 16, 2026
cdc1075
feat(react-router): Export createSentryHandleError from the Cloudflar…
JPeer264 Nov 16, 2026
1b231c2
test(tanstackstart-react): Run the e2e fixtures on TanStack Start sta…
chargome Nov 16, 2026
89c33cd
fix(server-utils): Keep usage and tool errors when ai omits channel r…
RulaKhaled Nov 16, 2026
f5131d1
perf(ci): Separate Nuxt production and development E2E jobs (#26396)
nicohrubec Nov 16, 2026
3ce89e4
test(nuxt): Remove redundant full-suite import compatibility variant …
nicohrubec Nov 16, 2026
dc8cc77
fix(server-utils): Trace Vercel AI streamObject on ai v4-v6 (#26382)
mvanhorn Nov 16, 2026
f22a8e9
fix(cloudflare): Forward method, headers and body when a Request is p…
Vivek1898 Nov 16, 2026
818ce89
chore: Add external contributor to CHANGELOG.md (#26412)
javascript-sdk-gitflow[bot] Nov 16, 2026
cb81d76
chore(ci): Prefer reviewers with fewer recent review requests (#26407)
sentry-junior[bot] Nov 16, 2026
1f9440a
chore: Add external contributor to CHANGELOG.md (#26411)
javascript-sdk-gitflow[bot] Nov 16, 2026
e9d4584
feat(server-utils): Record Bedrock responses as output messages (#26362)
andreiborza Nov 16, 2026
d078e04
fix(server-utils): Count Google GenAI tool-use prompt tokens as input…
pcbeingused333 Nov 16, 2026
8a4efc3
chore: Add external contributor to CHANGELOG.md (#26418)
javascript-sdk-gitflow[bot] Nov 16, 2026
e39b8cc
feat(core): Add `getTraceServerTimingHeader` and `isSharedCacheable` …
chargome Nov 16, 2026
aba1c7b
ref(remix): Use the core Server-Timing and shared-cache helpers (#26326)
chargome Nov 16, 2026
cc85e7a
feat(nextjs): Send the trace in the `Server-Timing` header of documen…
chargome Nov 16, 2026
6b0f6d8
feat(server-utils): Add recordInputs and recordOutputs options to aws…
andreiborza Nov 16, 2026
234fbe0
docs: Add Bedrock prompt and response recording to Important Changes …
andreiborza Nov 16, 2026
7f77bb2
test(astro): Cover server island trace connection in E2E tests (#26405)
chargome Nov 16, 2026
a6c6f23
fix(server-utils): Keep Workers AI streamed tool calls that have no i…
pcbeingused333 Nov 16, 2026
deebe83
feat(nextjs): Send the render start of a cached page to the browser (…
s1gr1d Nov 16, 2026
1818975
feat(sveltekit): Send the render start of a cached page to the browse…
s1gr1d Nov 16, 2026
54747d0
ref(tanstackstart-react): Forward request options in the server entry…
chargome Nov 16, 2026
7a618a8
feat(core): Support Zod 4 errors in zodErrorsIntegration (#25756)
sentry-junior[bot] Nov 16, 2026
c7b765f
feat(nuxt): Send the render start of a cached page to the browser (#2…
s1gr1d Nov 16, 2026
600cf87
meta(changelog): Update changelog for 11.13.0
andreiborza Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .agents/skills/bump-conventions/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ After fixing, re-run `pnpm run build:dev` and confirm it passes before verifying
## 5. Final verification

```bash
pnpm run circularDepCheck
pnpm run fix
pnpm run test
```
Expand Down
1 change: 0 additions & 1 deletion .agents/skills/upgrade-dep/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ pnpm install
pnpm run build:dev
pnpm run dedupe-deps:fix
pnpm run fix
pnpm run circularDepCheck
```

## Useful commands
Expand Down
26 changes: 11 additions & 15 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
<!--
Read the Contributing guidelines first: https://github.com/getsentry/sentry-javascript/blob/develop/CONTRIBUTING.md

Before you request a review:

- Add tests for new or changed behavior. `pnpm run lint` and `pnpm run test` pass.
- Fix or dismiss AI review findings.
- Read your own diff first, add inline comments with explanation or where to look closely.
- Large PR? Split or stack it, or describe why you cannot.

- Remove fields that do not apply (e.g. on small PRs).
- External contributors: link an issue where you got a maintainer's go-ahead.
Use simple, direct sentences. No "Summary" heading, no test-plan checklist.
Remove "Closes" if there is no linked issue.
External contributors: link an issue where you got a maintainer's go-ahead.
-->

**Why:** <!-- reason behind change, why this approach (no implementation walkthrough), non-obvious decisions/tradeoffs -->
## What

**How to review:** <!-- where to start, what to skim -->
<!--
One or two sentences on what changed for users. Add one-line bullets for the changes if needed.
Describe behavior and intent, not implementation. Reviewers read the diff for the how.
-->

**Unsure about:** <!-- where you want a second opinion -->
## Why

Closes #
<!-- One or two sentences: reason behind change, why this approach (no implementation walkthrough), non-obvious decisions/tradeoffs -->

<!-- Long, AI-written descriptions at the end, inside `<details><summary>AI walkthrough</summary>...</details>` -->
Closes: #
6 changes: 4 additions & 2 deletions .github/CODEOWNERS → .github/REVIEWERS
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Catch-all rule for shared packages
* @getsentry/team-javascript-sdks-browser @getsentry/team-javascript-sdks-server @getsentry/team-javascript-sdks-framework
# Reviewer routing for scripts/assign-reviewers.mjs, in CODEOWNERS syntax.
# This is deliberately not a CODEOWNERS file: GitHub requests every matching
# code owner team as soon as a PR opens, before the workflow requests anyone,
# so the whole team gets notified.

# Browser, replay, feedback, and related packages
/packages/browser/ @getsentry/team-javascript-sdks-browser
Expand Down
4 changes: 1 addition & 3 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ runs:
id: cache_dependencies
with:
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
key:
${{ steps.compute_lockfile_hash.outputs.hash }}${{ runner.arch != 'X64' && format('-{0}', runner.arch) || ''
}}
key: ${{ steps.compute_lockfile_hash.outputs.hash }}-${{ runner.arch }}

- name: Install dependencies
if: steps.cache_dependencies.outputs.cache-hit != 'true'
Expand Down
9 changes: 5 additions & 4 deletions .github/actions/prepare-e2e-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ inputs:
runtime:
description: 'The `runtime` of a runtime variant, see dev-packages/e2e-tests/README.md.'
default: ''
bun-version:
description: 'The Bun version to install, if the application needs Bun.'
default: '1.3.14'
deno-version:
description: 'The Deno version to install, if the application needs Deno.'
default: 'v2.8.3'
Expand All @@ -25,16 +28,14 @@ runs:
# Uses the repo's root node pin for the steps before the app is copied (installing pnpm, `test:prepare`,
# `test:validate`, `ci:copy-to-temp`). The app's own node version is set up after the copy below.
- name: Set up Node
uses: actions/setup-node@v7
with:
node-version-file: 'package.json'
uses: ./.github/actions/setup-node
- name: Set up Bun
if:
inputs.test-application == 'node-exports-test-app' || contains(inputs.test-application, 'bun') || inputs.runtime
== 'bun'
uses: oven-sh/setup-bun@v2
with:
bun-version: '1.3.14'
bun-version: ${{ inputs.bun-version || '1.4.2' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Conflicting Bun version defaults

Medium Severity

The bun-version input defaults to 1.3.14, but the setup step falls back to 1.4.2 when that input is empty. E2E jobs always pass matrix.bun-version, which is empty for unpinned apps, so those runs install 1.4.2 instead of the oldest supported Bun. deno-version keeps a matching default and fallback.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 600cf87. Configure here.

- name: Set up AWS SAM
if: contains(inputs.test-application, 'aws-serverless')
uses: aws-actions/setup-sam@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/restore-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
uses: actions/cache/restore@v6.1.0
with:
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
key: ${{ inputs.dependency_cache_key }}${{ runner.arch != 'X64' && format('-{0}', runner.arch) || '' }}
key: ${{ inputs.dependency_cache_key }}-${{ runner.arch }}

- name: Restore build artifacts
uses: actions/download-artifact@v7
Expand Down
32 changes: 32 additions & 0 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Set up Node'
description: 'Sets up the Node.js version of `devEngines.runtime` in the root package.json.'

runs:
using: 'composite'
steps:
- name: Resolve Node.js version
id: node
run: sh "$GITHUB_ACTION_PATH/resolve-node.sh"
shell: sh

# The runner images don't ship this exact version. Without the cache, `actions/setup-node` fetches its version
# manifest through the GitHub API in every job, which uses up the repository's `GITHUB_TOKEN` rate limit.
- name: Restore Node.js install
id: node-cache
uses: actions/cache/restore@v6.1.0
with:
path: ${{ steps.node.outputs.cache-path }}
key: ${{ steps.node.outputs.cache-key }}

- name: Set up Node
uses: actions/setup-node@v7
with:
node-version: ${{ steps.node.outputs.version }}

# Only `develop` saves, so PRs share one entry per architecture instead of each creating their own.
- name: Save Node.js install
if: steps.node-cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/develop'
uses: actions/cache/save@v6.1.0
with:
path: ${{ steps.node.outputs.cache-path }}
key: ${{ steps.node.outputs.cache-key }}
8 changes: 8 additions & 0 deletions .github/actions/setup-node/resolve-node.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu

version=$(jq -e -r '.devEngines.runtime.version' package.json)
cache_path="$RUNNER_TOOL_CACHE/node/$version"
cache_key="node-toolcache-$RUNNER_OS-$RUNNER_ARCH-$version"

printf 'version=%s\ncache-path=%s\ncache-key=%s\n' "$version" "$cache_path" "$cache_key" >> "$GITHUB_OUTPUT"
38 changes: 38 additions & 0 deletions .github/workflows/assign-junior-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'PR: Assign Junior PRs to requester'

on:
pull_request_target:
types:
- opened

permissions:
contents: read

jobs:
assign-requester:
name: Assign requester
runs-on: ubuntu-24.04
if: github.event.pull_request.user.login == 'sentry-junior[bot]'
steps:
# Matching Slack names to GitHub users lists team members, which needs org `members: read`.
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.GITFLOW_APP_ID }}
private-key: ${{ secrets.GITFLOW_APP_PRIVATE_KEY }}

- name: Checkout base branch
uses: actions/checkout@v7
with:
sparse-checkout: |
scripts/junior-requesters.mjs
sparse-checkout-cone-mode: false

- name: Assign requester
uses: actions/github-script@v9
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
const { assignJuniorRequesters } = await import('${{ github.workspace }}/scripts/junior-requesters.mjs');
await assignJuniorRequesters({ github, context, core });
48 changes: 48 additions & 0 deletions .github/workflows/assign-reviewers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: 'PR: Assign reviewers'

on:
# pull_request_target so this also runs for fork PRs. It only checks out the base branch,
# never the PR's code.
pull_request_target:
types:
- opened
- reopened
- ready_for_review

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: false

permissions:
contents: read

jobs:
assign-reviewers:
name: Assign reviewers
runs-on: ubuntu-24.04
if: github.event.pull_request.draft == false
steps:
# Listing team members needs org `members: read`, which GITHUB_TOKEN can't have.
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.GITFLOW_APP_ID }}
private-key: ${{ secrets.GITFLOW_APP_PRIVATE_KEY }}

- name: Checkout base branch
uses: actions/checkout@v7
with:
sparse-checkout: |
.github/REVIEWERS
scripts/assign-reviewers.mjs
scripts/junior-requesters.mjs
sparse-checkout-cone-mode: false

- name: Assign reviewers
uses: actions/github-script@v9
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
const { assignReviewers } = await import('${{ github.workspace }}/scripts/assign-reviewers.mjs');
await assignReviewers({ github, context, core });
Loading
Loading