FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[docs] fix discussions typo by mkosiarc · Pull Request #613 · python-gitlab/python-gitlab · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 3 additions & 3 deletions docs/gl_objects/discussions.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ List the discussions for a resource (issue, merge request, snippet or commit)::

Get a single discussion::

discussion = resource.discussion.get(discussion_id)
discussion = resource.discussions.get(discussion_id)

You can access the individual notes in the discussion through the ``notes``
attribute. It holds a list of notes in chronological order::
Expand All @@ -68,7 +68,7 @@ You can add notes to existing discussions::

You can get and update a single note using the ``*DiscussionNote`` resources::

discussion = resource.discussion.get(discussion_id)
discussion = resource.discussions.get(discussion_id)
# Get the latest note's id
note_id = discussion.attributes['note'][-1]['id']
last_note = discussion.notes.get(note_id)
Expand All @@ -77,7 +77,7 @@ You can get and update a single note using the ``*DiscussionNote`` resources::

Create a new discussion::

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

You can comment on merge requests and commit diffs. Provide the ``position``
dict to define where the comment should appear in the diff::
Expand Down

Back | FazBrowse Home | New Git URL