You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(workitems): align linkType enum to GitLab API values (#178)
* fix(workitems): align linkType enum to GitLab API values
Replace custom enum values (IS_BLOCKED_BY, RELATES_TO) with actual
GitLab GraphQL API values (BLOCKED_BY, RELATED). Remove the translation
layer that caused IS_BLOCKED_BY to fail with 100% error rate.
Closes#177
* fix(workitems): remove unnecessary type assertions in link handlers
The Zod schema enum values and WorkItemLinkType are identical,
making the `as WorkItemLinkType` casts redundant. Remove them
along with the now-unused import.
* test(workitems): assert BLOCKED_BY is passed directly to GraphQL API
Add assertion verifying the BLOCKED_BY linkType value reaches the
GraphQL request without mapping, confirming enum alignment fix.
* fix(workitems): document why legacy linkType aliases are not kept
IS_BLOCKED_BY caused 100% API failure, RELATES_TO only worked via
a mapping layer that masked the bug. No backward compatibility needed
for values that never worked correctly.
* refactor(workitems): remove redundant linkType spread and clean up comments
Remove no-op `linkType: node.linkType` property that duplicated
the spread operator. Simplify schema comment to reference issue
number instead of spelling out legacy values.
Copy file name to clipboardExpand all lines: docs/TOOLS.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1889,7 +1889,7 @@ Find and inspect issues, epics, tasks, and other work items. Actions: list (grou
1889
1889
1890
1890
### manage_work_item [tier: Free]
1891
1891
1892
-
Create, update, delete, or link work items (issues, epics, tasks). Actions: create (epics need GROUP namespace, issues/tasks need PROJECT), update (widgets: dates, time tracking, weight, iterations, health, progress, hierarchy), delete (permanent), add_link/remove_link (BLOCKS/IS_BLOCKED_BY/RELATES_TO). Related: browse_work_items for discovery.
1892
+
Create, update, delete, or link work items (issues, epics, tasks). Actions: create (epics need GROUP namespace, issues/tasks need PROJECT), update (widgets: dates, time tracking, weight, iterations, health, progress, hierarchy), delete (permanent), add_link/remove_link (BLOCKS/BLOCKED_BY/RELATED). Related: browse_work_items for discovery.
1893
1893
1894
1894
#### Actions
1895
1895
@@ -1908,7 +1908,7 @@ Create, update, delete, or link work items (issues, epics, tasks). Actions: crea
"Create, update, delete, or link work items (issues, epics, tasks). Actions: create (epics need GROUP namespace, issues/tasks need PROJECT), update (widgets: dates, time tracking, weight, iterations, health, progress, hierarchy), delete (permanent), add_link/remove_link (BLOCKS/IS_BLOCKED_BY/RELATES_TO). Related: browse_work_items for discovery.",
373
+
"Create, update, delete, or link work items (issues, epics, tasks). Actions: create (epics need GROUP namespace, issues/tasks need PROJECT), update (widgets: dates, time tracking, weight, iterations, health, progress, hierarchy), delete (permanent), add_link/remove_link (BLOCKS/BLOCKED_BY/RELATED). Related: browse_work_items for discovery.",
0 commit comments