New Parameter: wait time between pushes

Open
#110 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
git, github, go
Domain
ci-cd, cli

Research direction

Start at the CLI execution flow that clones repositories, runs commands, pushes changes, and opens pull requests, then inspect how command-line options are parsed. The work is done when a configurable delay separates processing each repository and the existing workflow-triggering behavior remains intact.

Written by the indexing model from the issue text.

Description

enhancement

As I understand, git-xargs works for following way:

  1. clones all passed repos
  2. runs the command on all repos
  3. pushes all changed repos to remote
  4. opens all PRs

Our main branches require successful workflow-runs for merging. So I should use the --no-skip-ci option. But this would mean, that I start over hundred workflow-runs in a few seconds. This would block our runners for hours.

Instead I don't use the --no-skip-ci option and run a script afterwards which does an empty commit to each repository to trigger the workflow and wait some time.

Describe the solution you'd like
My prefered solution would be, if git-xargs runs the steps 1-4 per repo and then waits some configurable time before repeating steps 1-4 with the next repository.
This way I the wait time will be used to wait for runners to complete and for the rate limit to go down.
In my case most of the execution time is wasted for waiting. This way, it could be decreased.

Describe alternatives you've considered
Additional parameter to configure wait time between pushes.

Dominant language
Go
Stars
1.1k
Forks
75
Avg merge
22h 5m
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gruntwork-io/git-xargs

All issues in gruntwork-io/git-xargs

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.