Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54b6a54

Browse files
committed
[docs] fix discussions typo
1 parentc9f7986 commit54b6a54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎docs/gl_objects/discussions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ List the discussions for a resource (issue, merge request, snippet or commit)::
4848

4949
Get a single discussion::
5050

51-
discussion = resource.discussion.get(discussion_id)
51+
discussion = resource.discussions.get(discussion_id)
5252

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

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

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

7878
Create a new discussion::
7979

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp