You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `--github-org` | If you want to target every repo in a Github org that your GITHUB_OAUTH_TOKEN has access to, pass the name of the Organization with this flag, to page through every repo via the Github API and target it | String | No |
333
333
| `--commit-message` | The commit message to use when creating commits. If you supply this flag, but neither the optional `--pull-request-title` or `--pull-request-description` flags, then the commit message value will be used for all three. | String | No |
334
334
| `--skip-pull-requests` | If you don't want any pull requests opened, but would rather have your changes committed directly to your specified branch, pass this flag. Note that it won't work if your Github repo is configured with branch protections on the branch you're trying to commit directly to!| Boolean | No |
335
+
|`--skip-archived-repos`| If you want to exclude archived (read-only) repositories from the list of targeted repos, pass this flag. | Boolean | No |
335
336
|`--dry-run`| If you are in the process of testing out `git-xargs` or your intial set of targeted repos, but you don't want to make any changes via the Github API (pushing your local changes or opening pull requests) you can pass the dry-run branch. This is useful because the output report will still tell you which repos would have been affected, without actually making changes via the Github API to your remote repositories. | Boolean | No |
Copy file name to clipboardExpand all lines: common/common.go
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ const (
6
6
GithubOrgFlagName="github-org"
7
7
DryRunFlagName="dry-run"
8
8
SkipPullRequestsFlagName="skip-pull-requests"
9
+
SkipArchivedReposFlagName="skip-archived-repos"
9
10
RepoFlagName="repo"
10
11
ReposFileFlagName="repos"
11
12
CommitMessageFlagName="commit-message"
@@ -30,6 +31,10 @@ var (
30
31
Name: SkipPullRequestsFlagName,
31
32
Usage: "When skip-pull-requests is set to true, no pull requests will be opened. All changes will be committed and pushed to the specified branch directly.",
32
33
}
34
+
GenericSkipArchivedReposFlag= cli.BoolFlag{
35
+
Name: SkipArchivedReposFlagName,
36
+
Usage: "Used in conjunction with github-org, will exclude archived repositories.",
37
+
}
33
38
GenericRepoFlag= cli.StringSliceFlag{
34
39
Name: RepoFlagName,
35
40
Usage: "A single repo name to run the command on in the format of <github-organization/repo-name>. Can be invoked multiple times with different repo names",
{Event: TargetBranchLookupErr, Description: "Repos whose target branches could not be looked up due to an API error"},
@@ -96,6 +99,7 @@ var allEvents = []types.AnnotatedEvent{
96
99
// RunStats will be a stats-tracker class that keeps score of which repos were touched, which were considered for update, which had branches made, PRs made, which were missing workflows or contexts, or had out of date workflows syntax values, etc
0 commit comments