@@ -3,9 +3,9 @@ name: glab-discussion
33description : >-
44 This skill should be used when the user asks to "read MR discussions",
55 "list MR comments", "reply to a discussion", "resolve a discussion",
6- "add a diff note", "review MR comments", "dump discussions ",
7- "show MR diff for commenting", or needs to interact with GitLab merge request
8- discussions. Provides CLI reference for the glab-discussion tool.
6+ "edit a comment", "delete a comment", " add a diff note", "review MR comments",
7+ "dump discussions", " show MR diff for commenting", or needs to interact with
8+ GitLab merge request discussions. Provides CLI reference for the glab-discussion tool.
99---
1010
1111# glab-discussion CLI
@@ -93,6 +93,19 @@ glab-discussion resolve <discussion_id>
9393glab-discussion resolve < discussion_id> --unresolve
9494```
9595
96+ ### edit — Edit an existing note
97+
98+ ``` bash
99+ glab-discussion edit < note_id> --body " Updated text"
100+ glab-discussion edit < note_id> --body - # read body from stdin
101+ ```
102+
103+ ### delete — Delete a note
104+
105+ ``` bash
106+ glab-discussion delete < note_id>
107+ ```
108+
96109## Resolving GitLab UI URLs
97110
98111GitLab UI links to specific notes use ` #note_<id> ` anchors (e.g.
@@ -113,6 +126,8 @@ and also in the filename suffix.
1131263 . ** Check diff context:** ` glab-discussion diff --file <path> ` to see commentable lines
1141274 . ** Reply:** ` glab-discussion write --reply-to <id> --body "..." `
1151285 . ** Add diff note:** ` glab-discussion write --file <path> --new-line <n> --body "..." `
116- 6 . ** Resolve:** ` glab-discussion resolve <id> `
117- 7 . ** Re-read:** ` glab-discussion read ` to see updated state (incremental, only changed files)
129+ 6 . ** Edit a note:** ` glab-discussion edit <note_id> --body "..." `
130+ 7 . ** Delete a note:** ` glab-discussion delete <note_id> `
131+ 8 . ** Resolve:** ` glab-discussion resolve <id> `
132+ 9 . ** Re-read:** ` glab-discussion read ` to see updated state (incremental, only changed files)
118133
0 commit comments