Skip to content

希望能支持推送到 gerrit #2274

Closed

Activity

  1. love-linger commented on Apr 17, 2026

    @love-linger
    Collaborator

    You can add a custom action to do this

  2. self-assigned this
    on Apr 17, 2026
  3. Vixb1122 commented on Apr 17, 2026

    @Vixb1122
    ContributorAuthor

    You can add a custom action to do this

    了解,麻烦问下,用自定义操作

    1. 如何补全当前分支的远程分支
    2. 如何根据是否填写指定内容按需补全及替换命令行参数

    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]

    Image
  4. love-linger commented on Apr 17, 2026

    @love-linger
    Collaborator

    I've pushed a new commit that adds Local Branch Selector and Remote Branch Selector control type for custom actions.

    For [wip|ready] you can just add a ComboBox and set the Options to |wip|ready

    Image

    For [submit] you can just add a CheckBox and set the Checked Value to submit.

  5. added
    enhancementNew feature or request
    and removed
    not-plannedIt's not planned in the future
    on Apr 17, 2026
  6. Vixb1122 commented on Apr 17, 2026

    @Vixb1122
    ContributorAuthor

    @love-linger 后续是不是类似这种效果,不过不清楚填空字符给到 gerrit 是否可行
    push origin {BRANCH}:refs/for/$8%$6,$7,$8,topic=$1,hashtag=$2,m=$3,r=$4,c=$5
    Image

  7. love-linger commented on Apr 17, 2026

    @love-linger
    Collaborator

    topic=$1,这种估计需要重新设计一下,比如:增加个 StringFormatter,填写 topic={0}, 这种,才能正确处理

  8. Vixb1122 commented on Apr 17, 2026

    @Vixb1122
    ContributorAuthor
    Image

    了解,目前用现有的功能,执行 push origin {BRANCH}:refs/for/${BRANCH}%$1,hashtag=$2,r=$3 会报错

  9. love-linger commented on Apr 17, 2026

    @love-linger
    Collaborator

    这是因为 ${BRANCH} 仅在 作用目标 为分支时才能正确被填写。改为分支后,需要右键选择需要操作(这里是推送),才可以看到该自定义操作。

  10. love-linger commented on Apr 17, 2026

    @love-linger
    Collaborator

    新增了一个提交,如果目标是Repository,替换参数中的 ${BRANCH} 为当前的分支名

  11. Vixb1122 commented on Apr 17, 2026

    @Vixb1122
    ContributorAuthor

    这是因为 ${BRANCH} 仅在 作用目标 为分支时才能正确被填写。改为分支后,需要右键选择需要操作(这里是推送),才可以看到该自定义操作。

    看图里面,我的作用目标确实是分支啊

  12. 3 remaining items

  13. Vixb1122 commented on Apr 17, 2026

    @Vixb1122
    ContributorAuthor

    @love-linger 这个可以

  14. love-linger commented on Apr 17, 2026

    @love-linger
    Collaborator

    我新增了个提交,对于TextBox类型增加可选配置String Formatter。

    Image
  15. Vixb1122 commented on Apr 17, 2026

    @Vixb1122
    ContributorAuthor

    @love-linger 可以,另外可以给自定义操作和输入控件的左侧列表新增复制操作吗,很多时候想基于已有的进行微调,而不是从新开始

  16. heartacker commented on Apr 17, 2026

    @heartacker
    Contributor

    #1633 #1628 终于有了转机

  17. love-linger commented on Apr 20, 2026

    @love-linger
    Collaborator

    正如我在之前PR中所提到的那样,如果 Custom Action 本身的变化不大,那就可以将变化的部分抽出来(比如做一个ComboBox选项),合成一个 Custom Action。如果变化太大,复制操作就没有什么意义。

    反而 Export/Import 功能可能会更有用。比如:与其他合作者共享配置等

  18. Vixb1122 commented on Apr 20, 2026

    @Vixb1122
    ContributorAuthor

    @love-linger 是想同时给分支和仓库都指定一份自定义操作

    另外试用了下 Branch Selector,希望 selector 的默认分支为当前选中的本地分支,远程分支为本地分支对应的远程分支,没有的话则为第一个远程分支。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions