Notes API - Get comments of the current user

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Description

I've been checking out the GitLab Notes API and I've found that there's some methods that I feel is missing.

I would love to see methods for getting notes posted by the current user. For example, I can post notes with my current access token, but if I later want to update it, there's no easy way for me to find that note I made, since I only have a token on my side. I can fetch all notes of the specific issue or merge request, but that is first of all unnecessary data, and also I obviously only get the user name and user ID, which I don't really have (I only have my access token).

Ideas? Thoughts? Have I missed something?

Proposal

Add separate API methods for getting notes of issues, merge requests and snippets, posted by the current access token.

Use cases

See jenkinsci/gitlab-plugin#575

Documentation blurb

List notes

Get all notes the authenticated user has access to.

The pagination parameters page and per_page can be used to restrict the list of notes.

GET /notes
GET /notes?author_id=5
GET /notes?scope=created-by-me

Parameters:

Attribute Type Required Description
order_by string no Return notes ordered by created_at or updated_at fields. Default is created_at
sort string no Return notes sorted in asc or desc order. Default is desc
created_after datetime no Return notes created after the given time (inclusive)
created_before datetime no Return notes created before the given time (inclusive)
scope string no Return notes for the given scope: created-by-me or all. Defaults to created-by-me
author_id integer no Returns notes created by the given user id.
Edited by 🤖 GitLab Bot 🤖