DEPRECATED
Superseded by @webframp/gitlab which provides list_mr_discussions, add_mr_note (with discussionId for replies), and resolve_mr_discussion
Gitlab Mr Threads
@figura/gitlab-mr-threadsv2026.07.20.1784548040
01README
GitLab MR Discussion Threads — fetch, reply to, and resolve MR discussion threads via the GitLab REST API. Complements @webframp/gitlab (general MR notes) and @webframp/gitlab-review (diff-based reviews) by exposing the thread/discussion lifecycle: list unresolved threads, reply within a thread, and resolve threads programmatically.
Authentication
Requires a GitLab personal access token with api scope, stored in a swamp vault.
Methods
- list_mr_threads — Fetch all discussion threads on an MR with resolution status and file position context
- reply_to_thread — Post a reply to an existing discussion thread - resolve_thread — Resolve or unresolve a discussion thread
02Release Notes
patch: label update
03Models
@figura/gitlab-mr-threadsv2026.07.17.2gitlab_mr_threads.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| host | string | GitLab hostname (e.g. gitlab.example.com) |
| token | string | GitLab personal access token with api scope |
fn list_mr_threads(project: string, iid: number)
Fetch all discussion threads on a merge request. Returns threads with their notes,
| Argument | Type | Description |
|---|---|---|
| project | string | Project path (e.g. mygroup/myproject) |
| iid | number | Merge request IID |
fn reply_to_thread(project: string, iid: number, threadId: string, body: string)
Post a reply to an existing discussion thread on a merge request.
| Argument | Type | Description |
|---|---|---|
| project | string | Project path (e.g. mygroup/myproject) |
| iid | number | Merge request IID |
| threadId | string | Discussion thread ID |
| body | string | Reply body (markdown) |
fn resolve_thread(project: string, iid: number, threadId: string)
Resolve or unresolve a discussion thread on a merge request.
| Argument | Type | Description |
|---|---|---|
| project | string | Project path (e.g. mygroup/myproject) |
| iid | number | Merge request IID |
| threadId | string | Discussion thread ID |
Resources
threads(15m)— Discussion threads on an MR
reply(7d)— Record of a reply posted to a thread
resolve(7d)— Record of a thread resolution action
04Previous Versions
2026.07.20.1784548009Jul 20, 2026
patch: minor metadata refresh
2026.07.17.3Jul 17, 2026
2026.07.17.2Jul 17, 2026
2026.07.17.1Jul 17, 2026
2026.07.02.1783005209Jul 2, 2026
2026.07.02.1783005127Jul 2, 2026
2026.07.02.1Jul 2, 2026
05Stats
A
100 / 100
Downloads
0
Archive size
7.0 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
06Platforms
07Labels