-
Notifications
You must be signed in to change notification settings - Fork 95
Extend CrateSelect
to allow an arbitrary number or explicit list of crates
#461
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
Conversation
Marked as a draft because I need to document the new functionality, test this somehow and fix the TODO. I'm hoping for comments on whether this (somewhat hacky) approach is acceptable or not. |
b648b96
to
eb08842
Compare
CrateSelect
CrateSelect
to allow arbitrary numbers or an explicit list of crates
CrateSelect
to allow arbitrary numbers or an explicit list of cratesCrateSelect
to allow an arbitrary number or explicit list of crates
eb08842
to
187df3f
Compare
@pietroalbini this still adds no tests, but I have tried everything but the link form of |
187df3f
to
3e4f509
Compare
Fix broken links in bot usage docs Saw these while working on #461.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks mostly good, but why is the URL handled just by the bot and not by the CLI? The two should have the same functionality.
As for the test, I guess it'd be nice to get URL fetching tested. Can you see how hard would it be to add mocking support to utils::http
? If it's too hard or cumbersome I'm not sure it's worth it.
Fix broken links in bot usage docs Saw these while working on #461.
☔ The latest upstream changes (presumably #453) made this pull request unmergeable. Please resolve the merge conflicts. |
3e4f509
to
6fdefd7
Compare
I added parsing tests for |
Thanks! @bors r+ |
📌 Commit 7d2588d has been approved by |
Extend `CrateSelect` to allow an arbitrary number or explicit list of crates Resolves #460. Make `CrateSelect` take an arbitrary number as part of a `top-{n}` or `random-{n}` crate specification or a comma-separated list of crates. Also allows craterbot comments to specify a list of crates via a URL (e.g. crates=https://gist.githubusercontent.com/ecstatic-morse/837c558b63fc73ab469bfbf4ad419a1f/raw/example-crate-list).
💔 Test failed - checks-travis |
This lets `CrateSelect` take arbitrary numbers as arguments to `top-` and `random-` (while preserving `small-random`) as well as a list of crates to run directly.
7d2588d
to
68958a8
Compare
The new |
@bors r+ |
📌 Commit 68958a8 has been approved by |
Extend `CrateSelect` to allow an arbitrary number or explicit list of crates Resolves #460. Make `CrateSelect` take an arbitrary number as part of a `top-{n}` or `random-{n}` crate specification or a comma-separated list of crates. Also allows craterbot comments to specify a list of crates via a URL (e.g. crates=https://gist.githubusercontent.com/ecstatic-morse/837c558b63fc73ab469bfbf4ad419a1f/raw/example-crate-list).
☀️ Test successful - checks-travis, status-appveyor |
Thanks @pietroalbini. Could you ping me somewhere when this gets deployed? |
Resolves #460.
Make
CrateSelect
take an arbitrary number as part of atop-{n}
orrandom-{n}
crate specification or a comma-separated list of crates. Also allows craterbot comments to specify a list of crates via a URL (e.g. crates=https://gist.githubusercontent.com/ecstatic-morse/837c558b63fc73ab469bfbf4ad419a1f/raw/example-crate-list).