Releases: fprochazka/glab-discussion
Releases · fprochazka/glab-discussion
v0.3.0
What's changed
- Multi-line diff note ranges:
readnow renders the full line range for diff notes that span multiple lines (Lines: <start> to <end>) instead of collapsing to a single end-line. Parsesposition.line_rangefrom the GitLab API. - Comment anchor URLs in
writeoutput: creating a discussion or reply now prints the anchor URL to the new note.
Full changelog: v0.2.1...v0.3.0
v0.2.1
Highlights
- Extend the PreToolUse hook to also block
glab mr note(creates a top-level MR comment viaglab), redirecting agents toglab-discussion writeso the comment becomes a tracked discussion thread with an ID.
Plugin upgrade
claude plugin marketplace update fprochazka-glab-discussion
claude plugin update glab-discussion@fprochazka-glab-discussionv0.2.0
Highlights
- New PreToolUse hook in the Claude Code plugin that blocks direct GitLab API access to MR discussions and notes, redirecting agents to the
glab-discussionCLI. Matches bothglab api .../merge_requests/*/discussions|notes(read and write) andglab mr view --comments, so thread IDs, resolve state, and inline diff positions stay in scope rather than getting lost in raw API JSON.
Plugin upgrade
claude plugin marketplace update fprochazka-glab-discussion
claude plugin update glab-discussion@fprochazka-glab-discussionv0.1.6
Fix JSON parsing for paginated glab API responses.
glab api --paginate concatenates one JSON array per page (e.g. [...][...]), which broke json.loads. Now uses JSONDecoder.raw_decode to parse each array sequentially and merge them into a single list.
v0.1.5
- Add
deletecommand for removing individual notes - Add
editcommand for updating note body text (supports stdin via--body -) - Improve skill docs to emphasize MR auto-detection as default
- Improve README with Why section and better usage docs
v0.1.4
- Improve dump summary: show thread count on first sync, unchanged count on incremental updates
- First run: "synced 41 discussion threads"
- Incremental: "updated: ..." + "(39 discussions up to date)"
- No changes: "(41 discussions up to date)"
v0.1.3
- Fix diff note creation — position is now sent as JSON body instead of form fields, which GitLab silently ignored
- Document that
--new-linematches local file line numbers when the source branch is checked out
v0.1.2
- Add note IDs
(note:<id>)to discussion output for resolving GitLab UI#note_URL anchors - Document URL resolution workflow in Claude Code skill
v0.1.1
- Add MIT LICENSE file
- Add Claude Code plugin installation instructions to README
- Make
--fullclear the dump directory before writing - Use display name for service accounts in dump filenames
- Add
bot-prefix to filenames for bot authors - Truncate timestamps to minutes in dump filenames
v0.1.0
Initial release — CLI wrapper around GitLab Discussions REST API with read, write, diff, and resolve subcommands.