A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://python-gitlab.readthedocs.org/en/stable/gl_objects/draft_notes.html below:

Draft Notes - python-gitlab v6.2.0

Toggle table of contents sidebar

Draft Notes

Draft notes are pending, unpublished comments on merge requests. They can be either start a discussion, or be associated with an existing discussion as a reply. They are viewable only by the author until they are published.

Reference Examples

List all draft notes for a merge request:

draft_notes = merge_request.draft_notes.list(get_all=True)

Get a draft note for a merge request by ID:

draft_note = merge_request.draft_notes.get(note_id)

Warning

When creating or updating draft notes, you can provide a complex nested position argument as a dictionary. Please consult the upstream API documentation linked above for the exact up-to-date attributes.

Create a draft note for a merge request:

draft_note = merge_request.draft_notes.create({'note': 'note content'})

Update an existing draft note:

draft_note.note = 'updated note content'
draft_note.save()

Delete an existing draft note:

Publish an existing draft note:

Publish all existing draft notes for a merge request in bulk:

merge_request.draft_notes.bulk_publish()

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4