@apex-actions/cli 0.90.0 → 0.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/grant/main.js
CHANGED
|
@@ -59,7 +59,7 @@ const listCommand = new Command('list')
|
|
|
59
59
|
const createCommand = new Command('create')
|
|
60
60
|
.description('Grant an installation complimentary access, replacing any open grant it holds — recorded against you')
|
|
61
61
|
.argument('<installationId>', 'the GitHub App installation (see: apex tenant installations --fresh)')
|
|
62
|
-
.requiredOption('--minutes <n>', 'standard minutes per calendar month, 1 to
|
|
62
|
+
.requiredOption('--minutes <n>', 'standard minutes per calendar month, 1 to 80,000')
|
|
63
63
|
.requiredOption('--concurrency <n>', 'jobs at once, 1 to 50')
|
|
64
64
|
.requiredOption('--reason <text>', 'who this is for and why they run free, up to 500 characters — stored on the grant')
|
|
65
65
|
.option('--until <YYYY-MM-DD>', 'the grant ends at the end of that UTC day (default: open-ended)')
|
|
@@ -86,7 +86,7 @@ const createCommand = new Command('create')
|
|
|
86
86
|
const updateCommand = new Command('update')
|
|
87
87
|
.description("Change an open grant's minutes, jobs at once or end date — it takes effect on the next admission and claim")
|
|
88
88
|
.argument('<grantId>', 'the grant (see: apex grant list)')
|
|
89
|
-
.option('--minutes <n>', 'standard minutes per calendar month, 1 to
|
|
89
|
+
.option('--minutes <n>', 'standard minutes per calendar month, 1 to 80,000')
|
|
90
90
|
.option('--concurrency <n>', 'jobs at once, 1 to 50')
|
|
91
91
|
.option('--until <YYYY-MM-DD>', 'end at the end of that UTC day')
|
|
92
92
|
.option('--no-end', 'remove the end date, making the grant open-ended')
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* answers with, the checks `apex grant` makes before a round trip — the
|
|
6
6
|
* control plane makes them again — and how each reads as a line.
|
|
7
7
|
*/
|
|
8
|
-
/** The admin API's limits on a grant (control-plane `domain/grant.ts`). */
|
|
9
|
-
export const MAX_GRANT_MINUTES =
|
|
8
|
+
/** The admin API's limits on a grant (control-plane `domain/grant.ts`): the largest plan's — Business's 80,000 since the re-pricing (O48). */
|
|
9
|
+
export const MAX_GRANT_MINUTES = 80_000;
|
|
10
10
|
export const MAX_GRANT_CONCURRENCY = 50;
|
|
11
11
|
export const MAX_GRANT_REASON = 500;
|
|
12
12
|
const whole = (raw, min, max) => {
|