Skip to content

Commit ff00204

Browse files
committed
fix(integrations): keep latest-commit v2 docs, mark Linear project lifecycle timestamps nullable
Inline the v2 commit output so the docs generator still documents it, and shrink the unused-exports baseline now that COMMIT_DATA_OUTPUT_PROPERTIES is imported.
1 parent 866d96c commit ff00204

5 files changed

Lines changed: 37 additions & 21 deletions

File tree

‎apps/docs/content/docs/integrations/github.mdx‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,26 @@ Retrieve the latest commit from a GitHub repository
212212
| --------- | ---- | ----------- |
213213
| `sha` | string | Commit SHA |
214214
| `html_url` | string | GitHub web URL |
215+
| `commit` | object | Core commit data |
216+
| ↳ `url` | string | Commit API URL |
217+
| ↳ `message` | string | Commit message |
218+
| ↳ `comment_count` | number | Number of comments |
219+
| ↳ `author` | object | Git actor \(author/committer\) |
220+
| ↳ `name` | string | Name |
221+
| ↳ `email` | string | Email address |
222+
| ↳ `date` | string | Timestamp \(ISO 8601\) |
223+
| ↳ `committer` | object | Git actor \(author/committer\) |
224+
| ↳ `name` | string | Name |
225+
| ↳ `email` | string | Email address |
226+
| ↳ `date` | string | Timestamp \(ISO 8601\) |
227+
| ↳ `tree` | object | Tree object |
228+
| ↳ `sha` | string | Tree SHA |
229+
| ↳ `url` | string | Tree API URL |
230+
| ↳ `verification` | object | Signature verification |
231+
| ↳ `verified` | boolean | Whether signature is verified |
232+
| ↳ `reason` | string | Verification reason |
233+
| ↳ `signature` | string | GPG signature |
234+
| ↳ `payload` | string | Signed payload |
215235
| `author` | object | GitHub user object |
216236
| ↳ `login` | string | GitHub username |
217237
| ↳ `id` | number | User ID |

‎apps/sim/tools/generated/tool-outputs.ts‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎apps/sim/tools/github/latest_commit.ts‎

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,7 @@ import {
66
USER_FULL_OUTPUT,
77
} from '@/tools/github/types'
88
import { GITHUB_CREDENTIAL_OAUTH } from '@/tools/shared/saved-credentials'
9-
import type { InternalToolConfig, OutputProperty } from '@/tools/types'
10-
11-
/** The V2 commit object, whose fields are `null` when the latest-commit lookup did not return them. */
12-
const LATEST_COMMIT_V2_COMMIT_OUTPUT = {
13-
...COMMIT_DATA_OUTPUT,
14-
properties: {
15-
...COMMIT_DATA_OUTPUT_PROPERTIES,
16-
url: { ...COMMIT_DATA_OUTPUT_PROPERTIES.url, nullable: true },
17-
comment_count: { ...COMMIT_DATA_OUTPUT_PROPERTIES.comment_count, nullable: true },
18-
author: { ...COMMIT_DATA_OUTPUT_PROPERTIES.author, nullable: true },
19-
committer: { ...COMMIT_DATA_OUTPUT_PROPERTIES.committer, nullable: true },
20-
tree: { ...COMMIT_DATA_OUTPUT_PROPERTIES.tree, nullable: true },
21-
verification: { ...COMMIT_DATA_OUTPUT_PROPERTIES.verification, nullable: true },
22-
},
23-
} satisfies OutputProperty
9+
import type { InternalToolConfig } from '@/tools/types'
2410

2511
export const latestCommitTool: InternalToolConfig<LatestCommitParams, LatestCommitResponse> = {
2612
id: 'github_latest_commit',
@@ -110,7 +96,18 @@ export const latestCommitV2Tool: InternalToolConfig = {
11096
outputs: {
11197
sha: { type: 'string', description: 'Commit SHA' },
11298
html_url: { type: 'string', description: 'GitHub web URL' },
113-
commit: LATEST_COMMIT_V2_COMMIT_OUTPUT,
99+
commit: {
100+
...COMMIT_DATA_OUTPUT,
101+
properties: {
102+
...COMMIT_DATA_OUTPUT_PROPERTIES,
103+
url: { ...COMMIT_DATA_OUTPUT_PROPERTIES.url, nullable: true },
104+
comment_count: { ...COMMIT_DATA_OUTPUT_PROPERTIES.comment_count, nullable: true },
105+
author: { ...COMMIT_DATA_OUTPUT_PROPERTIES.author, nullable: true },
106+
committer: { ...COMMIT_DATA_OUTPUT_PROPERTIES.committer, nullable: true },
107+
tree: { ...COMMIT_DATA_OUTPUT_PROPERTIES.tree, nullable: true },
108+
verification: { ...COMMIT_DATA_OUTPUT_PROPERTIES.verification, nullable: true },
109+
},
110+
},
114111
author: { ...USER_FULL_OUTPUT, nullable: true },
115112
committer: { ...USER_FULL_OUTPUT, nullable: true },
116113
},

‎apps/sim/tools/linear/types.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ export const PROJECT_FULL_OUTPUT_PROPERTIES = {
215215
*/
216216
export const PROJECT_DETAIL_OUTPUT_PROPERTIES = {
217217
...PROJECT_FULL_OUTPUT_PROPERTIES,
218-
completedAt: { type: 'string', description: 'Completion timestamp (ISO 8601)' },
219-
canceledAt: { type: 'string', description: 'Cancellation timestamp (ISO 8601)' },
220-
archivedAt: { type: 'string', description: 'Archive timestamp (ISO 8601)' },
218+
completedAt: { type: 'string', description: 'Completion timestamp (ISO 8601)', nullable: true },
219+
canceledAt: { type: 'string', description: 'Cancellation timestamp (ISO 8601)', nullable: true },
220+
archivedAt: { type: 'string', description: 'Archive timestamp (ISO 8601)', nullable: true },
221221
} as const satisfies Record<string, OutputProperty>
222222

223223
/**

‎scripts/check-unused-exports.baseline.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5368,7 +5368,6 @@
53685368
"apps/sim/tools/firecrawl/types.ts#SEARCH_METADATA_OUTPUT_PROPERTIES",
53695369
"apps/sim/tools/firecrawl/types.ts#SEARCH_RESULT_OUTPUT",
53705370
"apps/sim/tools/github/types.ts#BRANCH_REF_OUTPUT_PROPERTIES",
5371-
"apps/sim/tools/github/types.ts#COMMIT_DATA_OUTPUT_PROPERTIES",
53725371
"apps/sim/tools/github/types.ts#COMMIT_REF_OUTPUT",
53735372
"apps/sim/tools/github/types.ts#COMMIT_REF_OUTPUT_PROPERTIES",
53745373
"apps/sim/tools/github/types.ts#COMMIT_STATS_OUTPUT_PROPERTIES",

0 commit comments

Comments
 (0)