[Feature]: Enable setting `create_mr.title` in as function in `setup` options
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia dalla documentazione di configurazione in doc/gitlab.nvim.txt e segui gli entry point require(\"gitlab\").setup e create_mr descritti nell'issue. Il lavoro è completato quando settings.create_mr.title accetta una stringa o una funzione Lua e la stringa risultante viene usata per il titolo del GitLab Merge Request.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Thanks for gitlab.nvim! Just started using this plugin today and I think it will be incredibly useful for my workflow.
Feature Description
After referencing :h gitlab.nvim, I can see that we can set the title for Merge Requests using require("gitlab").create_mr({ title = "Fix bug XYZ", description = "Closes #123" }), but we cannot set MR titles in the setup options.
This makes sense, because it would rarely be useful to always use the same title for every Merge Request, but I think it would be a useful option if not only users were able to also set settings.create_mr.title within our setup configuration to gitlab.nvim, but we were able to set the title by providing a function that will be called to generate the title - so this is sort of 2 feature requests.
- To allow users to configure
settings.create_mr.titlewithin thesetupoptions and - To allow users to provide a
luafunction to this property, that, when called will return a string that can be used for the GitLab MR.
Ideal Behavior
return {
"harrisoncramer/gitlab.nvim",
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"sindrets/diffview.nvim",
"stevearc/dressing.nvim",
"nvim-tree/nvim-web-devicons",
},
build = function()
require("gitlab.server").build(true)
end, -- Builds the Go binary
config = function()
require("gitlab").setup({
create_mr = {
target = "main",
template_file = "Default.md",
title = function()
-- My complicated function that will use some runtime logic to return a string to use for MR title
return "foo(bar): baz"
end,
},
})
end,
}
Thanks again!
- Lingua principale
- Lua
- Stelle
- 401
- Fork
- 64
- Merge medio
- 7h 17m
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di harrisoncramer/gitlab.nvim
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
harrisoncramer/gitlab.nvim#585 · 1 commento ·
-
Security/Bug: Go server leaks auth_token to ps and leaves zombie processesForse già presa @jakubbortlik l’ha presa 13 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 46/100
harrisoncramer/gitlab.nvim#583 · 2 commenti · 1 assegnatario ·
-
Oauth Login the pluginForse di nuovo libera @vamshi567bh l’ha presa 254 giorni fa e non c’è nessuna pull request aperta. Apertafeature request
harrisoncramer/gitlab.nvim#515 · 2 commenti · 1 assegnatario ·
-
toggle_discussions() doesn't open new window - draft_notes error 404Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
harrisoncramer/gitlab.nvim#507 · 1 commento ·
-
feature request
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
harrisoncramer/gitlab.nvim#505 · 6 commenti ·
Tutte le issue di harrisoncramer/gitlab.nvim
Issue simili
-
agent-research-finding bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jordansmall/nixvim-config#99 ·
I maintainer di solito rispondono entro 1 giorno
-
omarchy-menu-keybindings lua bind scan spins at 100% CPU when user config iterates a mocked hl APIAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
omacom/omarchy#14302 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
BUG
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
linuxmint/cinnamon-spices-applets#9091 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
PathOfBuildingCommunity/PathOfBuilding-PoE2#2560 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100