Skip to content

Commit 988669f

Browse files
authored
Correct readme referencing incorrect flag name: --max-pull-request-retries -> --max-pr-retries (#107)
Correct references to flag / make language more consistent
1 parent f68178c commit 988669f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ git-xargs attempts to be a good citizen as regards consumption of the GitHub API
271271
In addition, git-xargs includes several features and flags to help you:
272272

273273
1. run jobs without tripping GitHub's rate limits
274-
1. recover when rate limited by automatically re-trying failed pull requests again, all while honoring the GitHub rate limits
274+
1. recover when rate limited by automatically retrying failed pull requests again, all while honoring the GitHub rate limits
275275
276276
**Distinct processing channels for expensive and non-expensive work**
277277
@@ -283,7 +283,7 @@ This means that git-xargs performs all the work upfront that it can as quickly a
283283
284284
**Automatic pull request retries when rate limited**
285285
286-
By default, git-xargs will re-attempt opening a pull request that failed due to rate limiting. The `--max-pull-request-retries` flag allows you to specify how many times you'd like a given pull request to be re-attempted in case of failure due to rate limiting. By default, the value is `3`, meaning that if you do not pass this flag, `git-xargs` will retry all rate-limit-blocked pull requests 3 times.
286+
By default, git-xargs will re-attempt opening a pull request that failed due to rate limiting. The `--max-pr-retries` flag allows you to specify how many times you'd like a given pull request to be re-attempted in case of failure due to rate limiting. By default, the value is `3`, meaning that if you do not pass this flag, `git-xargs` will retry all rate-limit-blocked pull requests 3 times.
287287

288288
**Automatic backoff when rate limiting is detected**
289289

@@ -421,7 +421,7 @@ echo "gruntwork-io/terragrunt gruntwork-io/terratest" | git-xargs \
421421
| `--dry-run` | If you are in the process of testing out `git-xargs` or your initial 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 flag. 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. Default: `false`. | Boolean | No |
422422
| `--draft` | Whether to open pull requests in draft mode. Draft pull requests are available for public GitHub repositories and private repositories in GitHub tiered accounts. See [Draft Pull Requests](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests) for more details. Default: false. | Boolean | No |
423423
| `--seconds-between-prs` | The number of seconds to wait between opening serial pull requests. If you are being rate limited, continue to increase this value until rate limiting eases. Note, this value cannot be negative, so if you pass a value less than 1, the seconds to wait between pull requests will be set to 1 second. Default: `1` second. | Integer | No |
424-
| `--max-pr-retries` | The number of seconds to wait between opening serial pull requests. If you are being rate limited, continue to increase this value until rate limiting eases. Default: `3` seconds. | Integer | No |
424+
| `--max-pr-retries` | The number of times to retry a pull request that failed due to rate limiting. Default: `3`. | Integer | No |
425425
| `--seconds-to-wait-when-rate-limited` | The number of seconds to pause once git-xargs has detected it has been rate limited. Note that this buffer is in addition to the value of --seconds-between-prs. If you are regularly being rate limited, increase this value until rate limiting eases. Default: `60` seconds. | Integer | No |
426426
| `--no-skip-ci` | By default, git-xargs will prepend \"[skip ci]\" to its commit messages to prevent large git-xargs jobs from creating expensive CI jobs excessively. If you pass the `--no-skip-ci` flag, then git-xargs will not prepend \"[skip ci]\". Default: false, meaning that \"[skip ci]\" will be prepended to commit messages. | Bool | No |
427427
| `--reviewers` | An optional slice of GitHub usernames, separated by commas, to request reviews from after a pull request is successfully opened. Default: empty slice, meaning that no reviewers will be requested. | String | No |

common/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ var (
9797
}
9898
GenericMaxPullRequestRetriesFlag = cli.IntFlag{
9999
Name: MaxPullRequestRetriesFlagName,
100-
Usage: "The number of times to re-try a failed pull request. Defaults to 3.",
100+
Usage: "The number of times to retry a pull request that failed due to rate limiting. Defaults to 3.",
101101
Value: DefaultMaxPullRequestRetries,
102102
}
103103
GenericSecondsToWaitWhenRateLimitedFlag = cli.IntFlag{

0 commit comments

Comments
 (0)