Skip to content

Commit 2ef6452

Browse files
zanecodesJohnVillalovos
authored andcommitted
docs(discussions): Add example of resolving a single project merge request discussion note
1 parent b411e5a commit 2ef6452

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/gl_objects/discussions.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ You can get and update a single note using the ``*DiscussionNote`` resources::
7575
last_note.body = 'Updated comment'
7676
last_note.save()
7777

78+
Resolve / unresolve a note::
79+
80+
last_note = discussion.notes.get(note_id)
81+
last_note.resolved = True # True to resolve, False to unresolve
82+
last_note.save()
83+
7884
Create a new discussion::
7985

8086
discussion = resource.discussions.create({'body': 'First comment of discussion'})

0 commit comments

Comments
 (0)