multi-gitter allows you to make changes in multiple repositories simultaneously. This is achieved by running a script or program in the context of multiple repositories. If any changes are made, a pull request is created that can be merged manually by the set reviewers, or automatically by multi-gitter when CI pipelines has completed successfully.
Are you a bash-guru or simply prefer your scripting in Node.js? It doesn't matter, since multi-gitter support any type of script or program. If you can script it to run in one place, you can run it in all your repositories with one command!
$ multi-gitter run ./my-script.sh -O my-org -m "Commit message" -B branch-name
Make sure the script has execution permissions before running it (chmod +x ./my-script.sh
)
If you are running an interpreted language or similar, it's important to specify the path as an absolute value (since the script will be run in the context of each repository). Using the $PWD
variable helps with this.
$ multi-gitter run "python $PWD/run.py" -O my-org -m "Commit message" -B branch-name $ multi-gitter run "node $PWD/script.js" -R repo1 -R repo2 -m "Commit message" -B branch-name $ multi-gitter run "go run $PWD/main.go" -U my-user -m "Commit message" -B branch-name
You might want to test your changes before creating commits. The --dry-run
provides an easy way to test without actually making any modifications. It works well with setting the log level to debug
with --log-level=debug
to also print the changes that would have been made.
$ multi-gitter run ./script.sh --dry-run --log-level=debug -O my-org -m "Commit message" -B branch-name
If you are using Mac or Linux, Homebrew is an easy way of installing multi-gitter.
brew install lindell/multi-gitter/multi-gitter
Find the binary for your operating system from the release page and download it.
To automatically install the latest version
curl -s https://raw.githubusercontent.com/lindell/multi-gitter/master/install.sh | sh
You can also install from source with go install
, this is not recommended for most cases.
go install github.com/lindell/multi-gitter@latest
To use multi-gitter, a token that is allowed to list repositories and create pull requests is needed. This token can either be set in the GITHUB_TOKEN
, GITLAB_TOKEN
, GITEA_TOKEN
environment variable, or by using the --token
flag.
How to generate a GitHub personal access token (classic). Make sure to give it repo
permissions.
How to generate a GitLab personal access token. Make sure to give to it the api
permission.
In Gitea, access tokens can be generated under Settings -> Applications -> Manage Access Tokens
All configuration in multi-gitter can be done through command line flags, configuration files or a mix of both. If you want to use a configuration file, simply use the --config=./path/to/config.yaml
. Multi-gitter will also read from the file ~/.multi-gitter/config
and take and configuration from there. The priority of configs are first flags, then defined config file and lastly the static config file.
</details> <details> <summary>All available merge options</summary># The username of the assignees to be added on the pull request. assignees: - example # Email of the committer. If not set, the global git config setting will be used. author-email: # Name of the committer. If not set, the global git config setting will be used. author-name: # The branch which the changes will be based on. base-branch: # Base URL of the target platform, needs to be changed for GitHub enterprise, a self-hosted GitLab instance, Gitea or BitBucket. base-url: # The name of the branch where changes are committed. branch: multi-gitter-branch # The temporary directory where the repositories will be cloned. If not set, the default os temporary directory will be used. clone-dir: # Use a code search to find a set of repositories to target (GitHub only). Repeated results from a given repository will be ignored, forks are NOT included by default (use `fork:true` to include them). See the GitHub documentation for full syntax: https://docs.github.com/en/search-github/searching-on-github/searching-code. code-search: # The commit message. Will default to title + body if none is set. commit-message: # The maximum number of concurrent runs. concurrent: 1 # What should happen if the branch already exist. # Available values: # skip: Skip making any changes to the existing branch and do not create a new pull request. # replace: Replace the existing content of the branch by force pushing any new changes, then reuse any existing pull request, or create a new one if none exist. conflict-strategy: skip # Create pull request(s) as draft. draft: false # Run without pushing changes or creating pull requests. dry-run: false # Limit fetching to the specified number of commits. Set to 0 for no limit. fetch-depth: 1 # Fork the repository instead of creating a new branch on the same owner. fork: false # If set, make the fork to the defined value. Default behavior is for the fork to be on the logged in user. fork-owner: # The type of git implementation to use. # Available values: # go: Uses go-git, a Go native implementation of git. This is compiled with the multi-gitter binary, and no extra dependencies are needed. # cmd: Calls out to the git command. This requires git to be installed and available with by calling "git". git-type: go # The name of a GitLab organization. All repositories in that group will be used. group: - example # Include GitLab subgroups when using the --group flag. include-subgroups: false # Insecure controls whether a client verifies the server certificate chain and host name. Used only for Bitbucket server. insecure: false # Take manual decision before committing any change. Requires git to be installed. interactive: false # Labels to be added to any created pull request. labels: - example # The file where all logs should be printed to. "-" means stdout. log-file: "-" # The formatting of the logs. Available values: text, json, json-pretty. log-format: text # The level of logging that should be made. Available values: trace, debug, info, error. log-level: info # If this value is set, reviewers will be randomized. max-reviewers: 0 # If this value is set, team reviewers will be randomized max-team-reviewers: 0 # The name of a GitHub organization. All repositories in that organization will be used. org: - example # The file that the output of the script should be outputted to. "-" means stdout. output: "-" # Don't use any terminal formatting when printing the output. plain-output: false # The platform that is used. Available values: github, gitlab, gitea, bitbucket_server, bitbucket_cloud. Note: bitbucket_cloud is in Beta platform: github # The body of the commit message. Will default to everything but the first line of the commit message if none is set. pr-body: # The title of the PR. Will default to the first line of the commit message if none is set. pr-title: # The name, including owner of a GitLab project in the format "ownerName/repoName". project: - group/project # Skip pull request and only push the feature branch. push-only: false # The name, including owner of a GitHub repository in the format "ownerName/repoName". repo: - my-org/js-repo - other-org/python-repo # Exclude repositories that match with a given Regular Expression repo-exclude: # Include repositories that match with a given Regular Expression repo-include: # Use a repository search to find repositories to target (GitHub only). Forks are NOT included by default, use `fork:true` to include them. See the GitHub documentation for full syntax: https://docs.github.com/en/search-github/searching-on-github/searching-for-repositories. repo-search: # The username of the reviewers to be added on the pull request. reviewers: - example # Skip repositories which are forks. skip-forks: false # Skip pull request and directly push to the branch. skip-pr: false # Skip changes on specified repositories, the name is including the owner of repository in the format "ownerName/repoName". skip-repo: - example # Use SSH cloning URL instead of HTTPS + token. This requires that a setup with ssh keys that have access to all repos and that the server is already in known_hosts. ssh-auth: false # Github team names of the reviewers, in format: 'org/team' team-reviewers: - example # The personal access token for the targeting platform. Can also be set using the GITHUB_TOKEN/GITLAB_TOKEN/GITEA_TOKEN/BITBUCKET_SERVER_TOKEN/BITBUCKET_CLOUD_APP_PASSWORD environment variable. token: # The topic of a GitHub/GitLab/Gitea repository. All repositories having at least one matching topic are targeted. topic: - example # The name of a user. All repositories owned by that user will be used. user: - example # The Bitbucket server username. username:
</details> <details> <summary>All available status options</summary># Base URL of the target platform, needs to be changed for GitHub enterprise, a self-hosted GitLab instance, Gitea or BitBucket. base-url: # The name of the branch where changes are committed. branch: multi-gitter-branch # Use a code search to find a set of repositories to target (GitHub only). Repeated results from a given repository will be ignored, forks are NOT included by default (use `fork:true` to include them). See the GitHub documentation for full syntax: https://docs.github.com/en/search-github/searching-on-github/searching-code. code-search: # Use pull requests made from forks instead of from the same repository. fork: false # If set, use forks from the defined value instead of the logged in user. fork-owner: # The name of a GitLab organization. All repositories in that group will be used. group: - example # Include GitLab subgroups when using the --group flag. include-subgroups: false # Insecure controls whether a client verifies the server certificate chain and host name. Used only for Bitbucket server. insecure: false # The file where all logs should be printed to. "-" means stdout. log-file: "-" # The formatting of the logs. Available values: text, json, json-pretty. log-format: text # The level of logging that should be made. Available values: trace, debug, info, error. log-level: info # The type of merge that should be done (GitHub). Multiple types can be used as backup strategies if the first one is not allowed. merge-type: - merge - squash - rebase # The name of a GitHub organization. All repositories in that organization will be used. org: - example # Don't use any terminal formatting when printing the output. plain-output: false # The platform that is used. Available values: github, gitlab, gitea, bitbucket_server, bitbucket_cloud. Note: bitbucket_cloud is in Beta platform: github # The name, including owner of a GitLab project in the format "ownerName/repoName". project: - group/project # The name, including owner of a GitHub repository in the format "ownerName/repoName". repo: - my-org/js-repo - other-org/python-repo # Use a repository search to find repositories to target (GitHub only). Forks are NOT included by default, use `fork:true` to include them. See the GitHub documentation for full syntax: https://docs.github.com/en/search-github/searching-on-github/searching-for-repositories. repo-search: # Skip repositories which are forks. skip-forks: false # Use SSH cloning URL instead of HTTPS + token. This requires that a setup with ssh keys that have access to all repos and that the server is already in known_hosts. ssh-auth: false # The personal access token for the targeting platform. Can also be set using the GITHUB_TOKEN/GITLAB_TOKEN/GITEA_TOKEN/BITBUCKET_SERVER_TOKEN/BITBUCKET_CLOUD_APP_PASSWORD environment variable. token: # The topic of a GitHub/GitLab/Gitea repository. All repositories having at least one matching topic are targeted. topic: - example # The name of a user. All repositories owned by that user will be used. user: - example # The Bitbucket server username. username:
# Base URL of the target platform, needs to be changed for GitHub enterprise, a self-hosted GitLab instance, Gitea or BitBucket. base-url: # The name of the branch where changes are committed. branch: multi-gitter-branch # Use a code search to find a set of repositories to target (GitHub only). Repeated results from a given repository will be ignored, forks are NOT included by default (use `fork:true` to include them). See the GitHub documentation for full syntax: https://docs.github.com/en/search-github/searching-on-github/searching-code. code-search: # Use pull requests made from forks instead of from the same repository. fork: false # If set, use forks from the defined value instead of the logged in user. fork-owner: # The name of a GitLab organization. All repositories in that group will be used. group: - example # Include GitLab subgroups when using the --group flag. include-subgroups: false # Insecure controls whether a client verifies the server certificate chain and host name. Used only for Bitbucket server. insecure: false # The file where all logs should be printed to. "-" means stdout. log-file: "-" # The formatting of the logs. Available values: text, json, json-pretty. log-format: text # The level of logging that should be made. Available values: trace, debug, info, error. log-level: info # The name of a GitHub organization. All repositories in that organization will be used. org: - example # The file that the output of the script should be outputted to. "-" means stdout. output: "-" # Don't use any terminal formatting when printing the output. plain-output: false # The platform that is used. Available values: github, gitlab, gitea, bitbucket_server, bitbucket_cloud. Note: bitbucket_cloud is in Beta platform: github # The name, including owner of a GitLab project in the format "ownerName/repoName". project: - group/project # The name, including owner of a GitHub repository in the format "ownerName/repoName". repo: - my-org/js-repo - other-org/python-repo # Use a repository search to find repositories to target (GitHub only). Forks are NOT included by default, use `fork:true` to include them. See the GitHub documentation for full syntax: https://docs.github.com/en/search-github/searching-on-github/searching-for-repositories. repo-search: # Skip repositories which are forks. skip-forks: false # Use SSH cloning URL instead of HTTPS + token. This requires that a setup with ssh keys that have access to all repos and that the server is already in known_hosts. ssh-auth: false # The personal access token for the targeting platform. Can also be set using the GITHUB_TOKEN/GITLAB_TOKEN/GITEA_TOKEN/BITBUCKET_SERVER_TOKEN/BITBUCKET_CLOUD_APP_PASSWORD environment variable. token: # The topic of a GitHub/GitLab/Gitea repository. All
字节跳动发布的AI编程神器IDE
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。
全能AI智能助手,随时解答生活与工作的多样问题
问小白,由元石科技研发的AI智能助手,快速准确地解答各种生活和工作问题,包括但不限于搜索、规划和社交互动,帮助用户在日常生活中提高效率,轻松管理个人事务。
实时语音翻译/同声传译工具
Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。
一键生成PPT和Word,让学习生活更轻松
讯飞智文是一个利用 AI 技术的项目,能够帮助用户生成 PPT 以及各类文档。无论是商业领域的市场分析报告、年度目标制定,还是学生群体的职业生涯规划、实习避坑指南,亦或是活动策划、旅游攻略等内容,它都能提供支持,帮助用户精准表达,轻松呈现各种信息。
深度推理能力全新升级,全面对标OpenAI o1
科大讯飞的星火大模型,支持语言理解、知识问答和文本创作等多功能,适用于多种文件和业务场景,提升办公和日常生活的效率。讯飞星火是一个提供丰富智能服务的平台,涵盖科技资讯、图像创作、写作辅助、编程解答、科研文献解读等功能,能为不同需求的用户提供便捷高效的帮助,助力用户轻松获取信息、解决问题,满足多样化使用场景。
一种基于大语言模型的高效单流解耦语音令牌文本到语音合成模型
Spark-TTS 是一个基于 PyTorch 的开源文本到语音合成项目,由多个知名机构联合参与。该项目提供了高效的 LLM(大语言模型)驱动的语音合成方案,支持语音克隆和语音创建功能,可通过命令行界面(CLI)和 Web UI 两种方式使用。用户可以根据需求调整语音的性别、音高、速度等参数,生成高质量的语音。该项目适用于多种场景,如有声读物制作、智能语音助手开发等。
AI助力,做PPT更简单!
咔片是一款轻量化在线演示设计工具,借助 AI 技术,实现从内容生成到智能设计的一站式 PPT 制作服务。支持多种文档格式导入生成 PPT,提供海量模板、智能美化、素材替换等功能,适用于销售、教师、学生等各类人群,能高效制作出高品质 PPT,满足不同场景演示需求。
选题、配图、成文,一站式创作,让内容运营更高效
讯飞绘文,一个AI集成平台,支持写作、选题、配图、排版和发布。高效生成适用于各类媒体的定制内容,加速品牌传播,提升内容营销效果。
专业的AI公文写作平台,公文写作神器
AI 材料星,专业的 AI 公文写作辅助平台,为体制内工作人员提供高效的公文写作解决方案。拥有海量公文文库、9 大核心 AI 功能,支持 30 + 文稿类型生成,助力快速完成领导讲话、工作总结、述职报告等材料,提升办公效率,是体制打工人的得力写作神器。
OpenAI Agents SDK,助力开发者便捷使用 OpenAI 相关功能。
openai-agents-python 是 OpenAI 推出的一款强大 Python SDK,它为开发者提供了与 OpenAI 模型交互的高效工具,支持工具调用、结果处理、追踪等功能,涵盖多种应用场景,如研究助手、财务研究等,能显著提升开发效率,让开发 者更轻松地利用 OpenAI 的技术优势。
最新AI工具、AI资讯
独家AI资源、AI项目落地
微信扫一扫关注公众号