Skip to content

Commit b9737ef

Browse files
committed
fix: Remove deprecated create_issue tool and update ESLint configuration
- Removed create_issue tool (migrated to Work Items GraphQL API) - Fixed all ESLint errors without using ES modules - Converted enums to type unions to avoid unused variable errors - Fixed WorkItemWidgetType export to work with both type and constant usage - All 81 tests passing with proper linting configuration
1 parent d552d06 commit b9737ef

File tree

10 files changed

+144
-159
lines changed

10 files changed

+144
-159
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ jobs:
3131
- name: Install dependencies
3232
run: yarn install --frozen-lockfile
3333

34-
# Temporarily disable lint to fix release process
35-
# - name: Lint code
36-
# run: yarn lint
34+
- name: Lint code
35+
run: yarn lint
3736

3837
- name: Run tests with coverage
3938
run: yarn test:cov

README.md

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -207,35 +207,30 @@ docker run -i --rm \
207207
13. `upload_markdown` - Upload a file to a GitLab project for use in markdown content
208208
14. `download_attachment` - Download an uploaded file from a GitLab project by secret and filename
209209

210-
### Issues Management
211-
15. `create_issue` - Create a new issue in a GitLab project
212-
16. `list_issues` - List issues (default: created by current user only; use scope='all' for all accessible issues)
213-
17. `my_issues` - List issues assigned to the authenticated user (defaults to open issues)
214-
18. `get_issue` - Get details of a specific issue in a GitLab project
215-
19. `update_issue` - Update an issue in a GitLab project
216-
20. `delete_issue` - Delete an issue from a GitLab project
217-
21. `list_issue_links` - List all issue links for a specific issue
218-
22. `list_issue_discussions` - List discussions for an issue in a GitLab project
219-
23. `get_issue_link` - Get a specific issue link
220-
24. `create_issue_link` - Create an issue link between two issues
221-
25. `delete_issue_link` - Delete an issue link
222-
26. `create_note` - Create a new note (comment) to an issue or merge request
223-
27. `update_issue_note` - Modify an existing issue thread note
224-
28. `create_issue_note` - Add a new note to an existing issue thread
210+
### Issues Management (Legacy - Use Work Items for new projects)
211+
15. `list_issues` - List issues (default: created by current user only; use scope='all' for all accessible issues)
212+
16. `my_issues` - List issues assigned to the authenticated user (defaults to open issues)
213+
17. `get_issue` - Get details of a specific issue in a GitLab project
214+
18. `list_issue_links` - List all issue links for a specific issue
215+
19. `list_issue_discussions` - List discussions for an issue in a GitLab project
216+
20. `get_issue_link` - Get a specific issue link
217+
21. `create_note` - Create a new note (comment) to an issue or merge request
218+
219+
**Note:** Issue creation and modification has been migrated to the Work Items GraphQL API. Use `create_work_item` and `update_work_item` instead.
225220

226221
### Merge Requests & Code Review
227-
29. `create_merge_request` - Create a new merge request in a GitLab project
228-
30. `list_merge_requests` - List merge requests in a GitLab project with filtering options
229-
31. `get_merge_request` - Get details of a merge request (Either mergeRequestIid or branchName must be provided)
230-
32. `get_merge_request_diffs` - Get the changes/diffs of a merge request (Either mergeRequestIid or branchName must be provided)
231-
33. `list_merge_request_diffs` - List merge request diffs with pagination support (Either mergeRequestIid or branchName must be provided)
232-
34. `get_branch_diffs` - Get the changes/diffs between two branches or commits in a GitLab project
233-
35. `update_merge_request` - Update a merge request (Either mergeRequestIid or branchName must be provided)
234-
36. `merge_merge_request` - Merge a merge request in a GitLab project
235-
37. `create_merge_request_thread` - Create a new thread on a merge request
236-
38. `mr_discussions` - List discussion items for a merge request
237-
39. `update_merge_request_note` - Modify an existing merge request thread note
238-
40. `create_merge_request_note` - Add a new note to an existing merge request thread
222+
22. `create_merge_request` - Create a new merge request in a GitLab project
223+
23. `list_merge_requests` - List merge requests in a GitLab project with filtering options
224+
24. `get_merge_request` - Get details of a merge request (Either mergeRequestIid or branchName must be provided)
225+
25. `get_merge_request_diffs` - Get the changes/diffs of a merge request (Either mergeRequestIid or branchName must be provided)
226+
26. `list_merge_request_diffs` - List merge request diffs with pagination support (Either mergeRequestIid or branchName must be provided)
227+
27. `get_branch_diffs` - Get the changes/diffs between two branches or commits in a GitLab project
228+
28. `update_merge_request` - Update a merge request (Either mergeRequestIid or branchName must be provided)
229+
29. `merge_merge_request` - Merge a merge request in a GitLab project
230+
30. `create_merge_request_thread` - Create a new thread on a merge request
231+
31. `mr_discussions` - List discussion items for a merge request
232+
32. `update_merge_request_note` - Modify an existing merge request thread note
233+
33. `create_merge_request_note` - Add a new note to an existing merge request thread
239234

240235
### Draft Notes Management
241236
41. `get_draft_note` - Get a single draft note from a merge request

eslint.config.js renamed to eslint.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ export default [
4343
'@typescript-eslint/no-unsafe-call': 'error',
4444
'@typescript-eslint/no-unsafe-return': 'error',
4545
'@typescript-eslint/restrict-template-expressions': 'error',
46-
// Дополнительные строгие правила для соответствия ошибкам компилятора TypeScript
4746
'@typescript-eslint/no-unsafe-argument': 'error',
4847
'@typescript-eslint/restrict-plus-operands': 'error',
4948
'@typescript-eslint/unbound-method': 'error',
5049
'@typescript-eslint/prefer-nullish-coalescing': 'error',
5150
'@typescript-eslint/prefer-optional-chain': 'error',
5251
'@typescript-eslint/no-non-null-assertion': 'error',
5352
'@typescript-eslint/prefer-as-const': 'error',
54-
// Правила для строгого контроля типов аргументов функций
5553
'@typescript-eslint/no-explicit-any': 'error',
5654
'@typescript-eslint/no-extraneous-class': 'off',
5755
},
@@ -98,4 +96,4 @@ export default [
9896
'@typescript-eslint/no-explicit-any': 'off',
9997
},
10098
},
101-
];
99+
];

src/entities/core/tools-readonly.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ import {
99
ListMergeRequestDiscussionsSchema,
1010
GetDraftNoteSchema,
1111
ListDraftNotesSchema,
12-
ListIssuesSchema,
13-
MyIssuesSchema,
14-
GetIssueSchema,
15-
ListIssueLinksSchema,
16-
ListIssueDiscussionsSchema,
17-
GetIssueLinkSchema,
12+
// Removed unused issue imports - migrated to Work Items GraphQL
1813
ListNamespacesSchema,
1914
GetNamespaceSchema,
2015
VerifyNamespaceSchema,

src/entities/core/tools.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
CreateOrUpdateFileSchema,
55
CreateRepositorySchema,
66
PushFilesSchema,
7-
CreateIssueSchema,
87
CreateMergeRequestSchema,
98
ForkRepositorySchema,
109
CreateBranchSchema,
@@ -18,12 +17,7 @@ import {
1817
DeleteDraftNoteSchema,
1918
PublishDraftNoteSchema,
2019
BulkPublishDraftNotesSchema,
21-
UpdateIssueNoteSchema,
22-
CreateIssueNoteSchema,
23-
UpdateIssueSchema,
24-
DeleteIssueSchema,
25-
CreateIssueLinkSchema,
26-
DeleteIssueLinkSchema,
20+
// Removed unused issue-related imports - migrated to Work Items GraphQL
2721
CreateLabelSchema,
2822
UpdateLabelSchema,
2923
DeleteLabelSchema,
@@ -52,11 +46,7 @@ export const coreWriteTools: ToolDefinition[] = [
5246
description: 'Push multiple files to a GitLab project in a single commit',
5347
inputSchema: zodToJsonSchema(PushFilesSchema),
5448
},
55-
{
56-
name: 'create_issue',
57-
description: 'Create a new issue in a GitLab project',
58-
inputSchema: zodToJsonSchema(CreateIssueSchema),
59-
},
49+
// NOTE: create_issue has been removed - use create_work_item instead (Work Items GraphQL API)
6050
{
6151
name: 'create_merge_request',
6252
description: 'Create a new merge request in a GitLab project',

0 commit comments

Comments
 (0)