相关文档: https://gerrit-review.googlesource.com/Documentation/user-upload.html 相关应用插件: https://plugins.jetbrains.com/plugin/7272-gerrit
Activity
love-linger commentedon Apr 17, 2026
You can add a custom action to do this
Vixb1122 commentedon Apr 17, 2026
了解,麻烦问下,用自定义操作
push origin {BRANCH}:refs/for/${REMOTE_BRANCH}%$6[private|remove-private],$7[wip|ready],$8[submit],$1[topic=$1],$2[hashtag=$2],$3[m=$3],$4[r=$4],$5[c=$5]feature: add `Local Branch Selector` and `Remote Branch Selector` con…
love-linger commentedon Apr 17, 2026
I've pushed a new commit that adds
Local Branch SelectorandRemote Branch Selectorcontrol type for custom actions.For
[wip|ready]you can just add aComboBoxand set theOptionsto|wip|readyFor
[submit]you can just add aCheckBoxand set theChecked Valuetosubmit.Vixb1122 commentedon Apr 17, 2026
@love-linger 后续是不是类似这种效果,不过不清楚填空字符给到 gerrit 是否可行

push origin {BRANCH}:refs/for/$8%$6,$7,$8,topic=$1,hashtag=$2,m=$3,r=$4,c=$5love-linger commentedon Apr 17, 2026
topic=$1,这种估计需要重新设计一下,比如:增加个 StringFormatter,填写topic={0},这种,才能正确处理Vixb1122 commentedon Apr 17, 2026
了解,目前用现有的功能,执行
push origin {BRANCH}:refs/for/${BRANCH}%$1,hashtag=$2,r=$3会报错love-linger commentedon Apr 17, 2026
这是因为
${BRANCH}仅在作用目标为分支时才能正确被填写。改为分支后,需要右键选择需要操作(这里是推送),才可以看到该自定义操作。enhance: replace `${BRANCH}` with current branch name if the custom a…
love-linger commentedon Apr 17, 2026
新增了一个提交,如果目标是
Repository,替换参数中的${BRANCH}为当前的分支名Vixb1122 commentedon Apr 17, 2026
看图里面,我的作用目标确实是分支啊
3 remaining items
Vixb1122 commentedon Apr 17, 2026
@love-linger 这个可以
feature: add `String Formatter` for `TextBox` in custom action (#2274)
love-linger commentedon Apr 17, 2026
我新增了个提交,对于
TextBox类型增加可选配置String Formatter。Vixb1122 commentedon Apr 17, 2026
@love-linger 可以,另外可以给自定义操作和输入控件的左侧列表新增复制操作吗,很多时候想基于已有的进行微调,而不是从新开始
heartacker commentedon Apr 17, 2026
#1633 #1628 终于有了转机
feature: add `Local Branch Selector` and `Remote Branch Selector` con…
enhance: replace `${BRANCH}` with current branch name if the custom a…
feature: add `String Formatter` for `TextBox` in custom action (sourc…
chore: upstream sync Batch 11 - 7 commits (macOS menu + Custom Action…
love-linger commentedon Apr 20, 2026
正如我在之前PR中所提到的那样,如果 Custom Action 本身的变化不大,那就可以将变化的部分抽出来(比如做一个ComboBox选项),合成一个 Custom Action。如果变化太大,复制操作就没有什么意义。
反而 Export/Import 功能可能会更有用。比如:与其他合作者共享配置等
Vixb1122 commentedon Apr 20, 2026
@love-linger 是想同时给分支和仓库都指定一份自定义操作
另外试用了下 Branch Selector,希望 selector 的默认分支为当前选中的本地分支,远程分支为本地分支对应的远程分支,没有的话则为第一个远程分支。
enhance: auto-select branch for `Branch Selector` control in custom a…
Update from source repo (#1)
Update from base repo (#2)