Skip to content

Commit 2755b54

Browse files
committed
Document note ID format and URL resolution in skill
1 parent 16f4399 commit 2755b54

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

  • coding-agent-plugins/claude-code/skills/glab-discussion

coding-agent-plugins/claude-code/skills/glab-discussion/SKILL.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Incremental — only rewrites files when content has changed. Prints a summary o
3030

3131
Each file contains:
3232
- Header: discussion ID, type (General/DiffNote), resolved status, file/line for diff notes, URL
33-
- Body: chronological notes with timestamps, usernames, `[BOT]` for bot accounts
33+
- Body: chronological notes with timestamps, usernames, note IDs `(note:<id>)`, `[BOT]` for bot accounts
3434

3535
### diff — Show commentable diff with line numbers
3636

@@ -89,6 +89,19 @@ glab-discussion resolve <discussion_id>
8989
glab-discussion resolve <discussion_id> --unresolve
9090
```
9191

92+
## Resolving GitLab UI URLs
93+
94+
GitLab UI links to specific notes use `#note_<id>` anchors (e.g.
95+
`https://gitlab.example.com/group/project/-/merge_requests/123#note_456789`).
96+
To find the discussion thread for a note URL, grep the dump files for the note ID:
97+
98+
```bash
99+
grep -rl "note:456789" /tmp/glab-discussion/<host>/mr-<iid>/
100+
```
101+
102+
The matching file contains the full thread. The discussion ID is in the file header
103+
and also in the filename suffix.
104+
92105
## Typical AI Workflow
93106

94107
1. **Read discussions:** `glab-discussion read`

0 commit comments

Comments
 (0)