Skip to content

Commit 8b421f3

Browse files
authored
Merge branch 'main' into fix/tri-6744-in-run-page-synchronize-highligh-on-hover
2 parents 01d654c + 7af789b commit 8b421f3

File tree

219 files changed

+20431
-2882
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+20431
-2882
lines changed

.changeset/afraid-gorillas-jump.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
"@trigger.dev/sdk": minor
3+
---
4+
5+
Added `query.execute()` which lets you query your Trigger.dev data using TRQL (Trigger Query Language) and returns results as typed JSON rows or CSV. It supports configurable scope (environment, project, or organization), time filtering via `period` or `from`/`to` ranges, and a `format` option for JSON or CSV output.
6+
7+
```typescript
8+
import { query } from "@trigger.dev/sdk";
9+
import type { QueryTable } from "@trigger.dev/sdk";
10+
11+
// Basic untyped query
12+
const result = await query.execute("SELECT run_id, status FROM runs LIMIT 10");
13+
14+
// Type-safe query using QueryTable to pick specific columns
15+
const typedResult = await query.execute<QueryTable<"runs", "run_id" | "status" | "triggered_at">>(
16+
"SELECT run_id, status, triggered_at FROM runs LIMIT 10"
17+
);
18+
typedResult.results.forEach(row => {
19+
console.log(row.run_id, row.status); // Fully typed
20+
});
21+
22+
// Aggregation query with inline types
23+
const stats = await query.execute<{ status: string; count: number }>(
24+
"SELECT status, COUNT(*) as count FROM runs GROUP BY status",
25+
{ scope: "project", period: "30d" }
26+
);
27+
28+
// CSV export
29+
const csv = await query.execute(
30+
"SELECT run_id, status FROM runs",
31+
{ format: "csv", period: "7d" }
32+
);
33+
console.log(csv.results); // Raw CSV string
34+
```

.changeset/mcp-wait-timeout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Add optional `timeoutInSeconds` parameter to the `wait_for_run_to_complete` MCP tool. Defaults to 60 seconds. If the run doesn't complete within the timeout, the current state of the run is returned instead of waiting indefinitely.

.changeset/tricky-suits-design.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
"trigger.dev": patch
4+
"@trigger.dev/core": patch
5+
---
6+
7+
Fixed a minor issue in the deployment command on distinguishing between local builds for the cloud vs local builds for self-hosting setups.

.changeset/vercel-integration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/core": patch
3+
---
4+
5+
Add Vercel integration support to API schemas: `commitSHA` and `integrationDeployments` on deployment responses, and `source` field for environment variable imports.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Vouch Request
2+
description: Request to be vouched as a contributor
3+
labels: ["vouch-request"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
## Vouch Request
9+
10+
We use [vouch](https://github.com/mitchellh/vouch) to manage contributor trust. PRs from unvouched users are automatically closed.
11+
12+
To get vouched, fill out this form. A maintainer will review your request and vouch for you by commenting on this issue.
13+
- type: textarea
14+
id: context
15+
attributes:
16+
label: Why do you want to contribute?
17+
description: Tell us a bit about yourself and what you'd like to work on.
18+
placeholder: "I'd like to fix a bug I found in..."
19+
validations:
20+
required: true
21+
- type: textarea
22+
id: prior-work
23+
attributes:
24+
label: Prior contributions or relevant experience
25+
description: Links to previous open source work, relevant projects, or anything that helps us understand your background.
26+
placeholder: "https://github.com/..."
27+
validations:
28+
required: false

.github/VOUCHED.td

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Vouched contributors for Trigger.dev
2+
# See: https://github.com/mitchellh/vouch
3+
#
4+
# Org members
5+
0ski
6+
D-K-P
7+
ericallam
8+
matt-aitken
9+
mpcgrid
10+
myftija
11+
nicktrn
12+
samejr
13+
isshaddad
14+
# Outside contributors
15+
gautamsi
16+
capaj

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,24 @@ jobs:
122122
package_version=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[0].version')
123123
echo "package_version=${package_version}" >> "$GITHUB_OUTPUT"
124124
125-
# this triggers the publish workflow for the docker images
126125
- name: Create and push Docker tag
127126
if: steps.changesets.outputs.published == 'true'
128127
run: |
129128
set -e
130129
git tag "v.docker.${{ steps.get_version.outputs.package_version }}"
131130
git push origin "v.docker.${{ steps.get_version.outputs.package_version }}"
132131
132+
# Trigger Docker builds directly via workflow_call since tags pushed with
133+
# GITHUB_TOKEN don't trigger other workflows (GitHub Actions limitation).
134+
publish-docker:
135+
name: 🐳 Publish Docker images
136+
needs: release
137+
if: needs.release.outputs.published == 'true'
138+
uses: ./.github/workflows/publish.yml
139+
secrets: inherit
140+
with:
141+
image_tag: v${{ needs.release.outputs.published_package_version }}
142+
133143
# The prerelease job needs to be on the same workflow file due to a limitation related to how npm verifies OIDC claims.
134144
prerelease:
135145
name: 🧪 Prerelease
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Vouch - Check PR
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
issues: read
11+
12+
jobs:
13+
check-pr:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: mitchellh/vouch/action/check-pr@main
18+
with:
19+
pr-number: ${{ github.event.pull_request.number }}
20+
auto-close: true
21+
require-vouch: true
22+
env:
23+
GH_TOKEN: ${{ github.token }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Vouch - Manage by Issue
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
permissions:
8+
contents: write
9+
issues: write
10+
11+
jobs:
12+
manage:
13+
runs-on: ubuntu-latest
14+
if: >-
15+
contains(github.event.comment.body, 'vouch') ||
16+
contains(github.event.comment.body, 'denounce') ||
17+
contains(github.event.comment.body, 'unvouch')
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: mitchellh/vouch/action/manage-by-issue@main
21+
with:
22+
comment-id: ${{ github.event.comment.id }}
23+
issue-id: ${{ github.event.issue.number }}
24+
env:
25+
GH_TOKEN: ${{ github.token }}

.vscode/launch.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@
3131
"cwd": "${workspaceFolder}/apps/webapp",
3232
"sourceMaps": true
3333
},
34+
{
35+
"type": "node-terminal",
36+
"request": "launch",
37+
"name": "Debug opened test file",
38+
"command": "pnpm run test -- ./${relativeFile}",
39+
"envFile": "${workspaceFolder}/.env",
40+
"cwd": "${workspaceFolder}",
41+
"sourceMaps": true
42+
},
3443
{
3544
"type": "chrome",
3645
"request": "launch",

0 commit comments

Comments
 (0)