[Feature]: Enable setting `create_mr.title` in as function in `setup` options
まだ誰も着手していません。
評価
調査の方向性
doc/gitlab.nvim.txt のセットアップドキュメントから始め、issue に記載されている require(\"gitlab\").setup と create_mr のエントリーポイントを追跡します。settings.create_mr.title が文字列または Lua 関数を受け入れ、その結果の文字列が GitLab Merge Request のタイトルに使用されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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!
- 主要言語
- Lua
- スター
- 401
- フォーク
- 64
- 平均マージ
- 7時間 17分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
harrisoncramer/gitlab.nvim のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
harrisoncramer/gitlab.nvim#585 · コメント 1 件 ·
-
Security/Bug: Go server leaks auth_token to ps and leaves zombie processes対応中かも @jakubbortlik が 12 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 46/100
harrisoncramer/gitlab.nvim#583 · コメント 2 件 · 担当者 1 名 ·
-
Oauth Login the plugin再び着手できるかも @vamshi567bh が 253 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンfeature request
harrisoncramer/gitlab.nvim#515 · コメント 2 件 · 担当者 1 名 ·
-
toggle_discussions() doesn't open new window - draft_notes error 404対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
harrisoncramer/gitlab.nvim#507 · コメント 1 件 ·
-
feature request
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
harrisoncramer/gitlab.nvim#505 · コメント 6 件 ·
harrisoncramer/gitlab.nvim の issue をすべて見る
似ている issue
-
5.scope: tracking 6.topic: lua
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NixOS/nixpkgs#570322 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
PathOfBuildingCommunity/PathOfBuilding-PoE2#2560 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Nevcairiel/GatherMate2#62 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100