Skip to content

Commit 0dbaae7

Browse files
committed
fix(gitlab): expose all tool-returned fields as block outputs
- Add total, size, ref, blobId, lastCommitId, mergeRequestIid, changesCount, approvedBy, protected, id, status to the block outputs map — these fields are already returned by their respective tools but weren't declared as outputs - Add missing 'title' value to list_issues orderBy description
1 parent bdf3a94 commit 0dbaae7

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

apps/sim/blocks/blocks/gitlab.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,7 @@ Return ONLY the commit message - no explanations, no extra text.`,
12631263
// Merge request outputs
12641264
mergeRequests: { type: 'json', description: 'List of merge requests' },
12651265
mergeRequest: { type: 'json', description: 'Merge request details' },
1266+
mergeRequestIid: { type: 'number', description: 'Merge request internal ID (IID)' },
12661267
// Pipeline outputs
12671268
pipelines: { type: 'json', description: 'List of pipelines' },
12681269
pipeline: { type: 'json', description: 'Pipeline details' },
@@ -1278,21 +1279,32 @@ Return ONLY the commit message - no explanations, no extra text.`,
12781279
commits: { type: 'json', description: 'List of commits' },
12791280
commit: { type: 'json', description: 'A single commit (e.g. latest commit in a comparison)' },
12801281
name: { type: 'string', description: 'Created branch name' },
1282+
protected: { type: 'boolean', description: 'Whether the branch is protected' },
1283+
size: { type: 'number', description: 'File size in bytes' },
1284+
ref: { type: 'string', description: 'The branch, tag, or commit SHA' },
1285+
blobId: { type: 'string', description: 'The blob ID' },
1286+
lastCommitId: { type: 'string', description: 'The last commit ID that modified the file' },
12811287
webUrl: { type: 'string', description: 'Web URL' },
12821288
// Merge request change outputs
12831289
changes: { type: 'json', description: 'Merge request file changes/diffs' },
1290+
changesCount: { type: 'number', description: 'Number of changed files returned' },
12841291
approvalsRequired: { type: 'number', description: 'Approvals required' },
12851292
approvalsLeft: { type: 'number', description: 'Approvals remaining' },
1293+
approvedBy: { type: 'json', description: 'List of approvers' },
12861294
// Job outputs
12871295
jobs: { type: 'json', description: 'Pipeline jobs' },
12881296
log: { type: 'string', description: 'Job log output' },
1297+
id: { type: 'number', description: 'Job ID' },
1298+
status: { type: 'string', description: 'Job status' },
12891299
// Compare outputs
12901300
diffs: { type: 'json', description: 'File diffs between two compared references' },
12911301
compareTimeout: { type: 'boolean', description: 'Whether the comparison timed out' },
12921302
compareSameRef: { type: 'boolean', description: 'Whether both compared references match' },
12931303
// Release outputs
12941304
releases: { type: 'json', description: 'List of releases' },
12951305
release: { type: 'json', description: 'Release details' },
1306+
// Pagination
1307+
total: { type: 'number', description: 'Total number of items available across all pages' },
12961308
// Success indicator
12971309
success: { type: 'boolean', description: 'Operation success status' },
12981310
},

apps/sim/tools/gitlab/list_issues.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const gitlabListIssuesTool: ToolConfig<GitLabListIssuesParams, GitLabList
6262
required: false,
6363
visibility: 'user-or-llm',
6464
description:
65-
'Order by field (created_at, updated_at, priority, due_date, relative_position, label_priority, milestone_due, popularity, weight)',
65+
'Order by field (created_at, updated_at, priority, due_date, relative_position, label_priority, milestone_due, popularity, title, weight)',
6666
},
6767
sort: {
6868
type: 'string',

0 commit comments

Comments
 (0)