Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --all-orgs parameter to gut pull #188

Open
snomos opened this issue Feb 7, 2024 · 1 comment
Open

Add --all-orgs parameter to gut pull #188

snomos opened this issue Feb 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@snomos
Copy link
Member

snomos commented Feb 7, 2024

In daily use, it is usually so that one would like to pull all repos from all GH organisations in one go. That is not possible now. We thus need a parameter for gut pull to do that, tentatively named --all-orgs.

The new parameter could also take a value, one of:

  • comma-separated lists of orgs to pull from
  • regex matching org names

Perhaps the regex variant sits better with the overall design of gut, and would also require less typing in most cases.

The actual pulling should happen as now, just with all matching repos in all orgs at the same time (ie as parallel threads). When done, gut should print one report for each org (the same as now, including any errors detected), and a summary report at the end, something like:

+----------------------------------------------------------------------+
| Organisation  Matched repos  Updated repos  Error repos  Dirty repos |
+======================================================================+
| apertium                604             37            1            1 |
| divvun                  100              7            0            0 |
| giellalt                469             12            0            0 |
+----------------------------------------------------------------------+
| summary                1173             56            1            1 |
+----------------------------------------------------------------------+

Successfully pulled 1171 repos in 3 organsiations, 2 error/dirty repos!

where:

  • Matched repos = total number of repos matched by any regex for each org and in total
  • Updated repos = total number of repos actually receiving data/new commits from GH
  • Successfully pulled = total matches minus error/dirty repos

This should be faster and more generic than a for loop, like what @Trondtr has written for personal use.

@snomos snomos added the enhancement New feature or request label Feb 7, 2024
@Trondtr
Copy link
Contributor

Trondtr commented Feb 7, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants