| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,7 +48,7 @@ List the discussions for a resource (issue, merge request, snippet or commit):: | |||
| 48 | 48 | ||
| 49 | 49 | Get a single discussion:: | |
| 50 | 50 | ||
| 51 | - discussion = resource.discussion.get(discussion_id) | ||
| 51 | + discussion = resource.discussions.get(discussion_id) | ||
| 52 | 52 | ||
| 53 | 53 | You can access the individual notes in the discussion through the ``notes`` | |
| 54 | 54 | attribute. It holds a list of notes in chronological order:: | |
@@ -68,7 +68,7 @@ You can add notes to existing discussions:: | |||
| 68 | 68 | ||
| 69 | 69 | You can get and update a single note using the ``*DiscussionNote`` resources:: | |
| 70 | 70 | ||
| 71 | - discussion = resource.discussion.get(discussion_id) | ||
| 71 | + discussion = resource.discussions.get(discussion_id) | ||
| 72 | 72 | # Get the latest note's id | |
| 73 | 73 | note_id = discussion.attributes['note'][-1]['id'] | |
| 74 | 74 | last_note = discussion.notes.get(note_id) | |
@@ -77,7 +77,7 @@ You can get and update a single note using the ``*DiscussionNote`` resources:: | |||
| 77 | 77 | ||
| 78 | 78 | Create a new discussion:: | |
| 79 | 79 | ||
| 80 | - discussion = resource.discussion.create({'body': 'First comment of discussion'}) | ||
| 80 | + discussion = resource.discussions.create({'body': 'First comment of discussion'}) | ||
| 81 | 81 | ||
| 82 | 82 | You can comment on merge requests and commit diffs. Provide the ``position`` | |
| 83 | 83 | dict to define where the comment should appear in the diff:: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments