harrisoncramer / harrisoncramer/gitlab.nvim

Choose whether note is resolvable

Offen
#418 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
feature request
Vorherrschende Sprache
Lua
Sterne
399
Forks
62
Ø Merge
2 T. 19 Std.
Gemergte PRs (30 T.)
2

Beschreibung

## Feature Description

While working on #417, I've noticed that notes in `gitlab.nvim` are created as resolvable (i.e., as threads) when they are created directly with `require("gitlab").create_note()`, but as non-resolvable when they are first created as a draft note and then published. While I don't think this causes any real problems to users, it may be a little confusing why some notes need to be resolved and some not.

To match the behaviour of Gitlab online, (and if this is supported by [go-gitlab](https://github.com/xanzy/go-gitlab)) users should have the possibility of choosing whether they create a note as a non-resolvable comment or a thread. This could be implemented as another field in the note popup next to "Draft", something like "Type" with the values "Comment" and "Thread".

I've also just noticed, that Gitlab also allows creating "Internal notes". `gitlab.nvim` should probably at least show the `internal` flag on the note, ideally, also enable users to create internal notes (that could be another field in the note popup).

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne bei require("gitlab").create_note() und dem Notiz-Popup und vergleiche anschließend direkte Notizen mit Entwurfsnotizen, die danach veröffentlicht werden. Prüfe, ob go-gitlab die Auswahl zwischen Kommentar und Thread sowie das Offenlegen des internen Flags unterstützt. Erledigt ist die Aufgabe, wenn das Popup den gewünschten Notiztyp auswählen kann und die resultierenden Notizen dem Verhalten von GitLab entsprechen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
gitlab, lua, neovim
Bereich
api, tooling
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.