Skip to content

[docs] fix discussions typo #613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/gl_objects/discussions.rst
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