@@ -21,6 +21,7 @@ gh graphql add-template-oss
21
21
gh graphql clone
22
22
gh graphql comment
23
23
gh graphql delete-branches
24
+ gh graphql enable-lint-feature
24
25
gh graphql merge
25
26
gh graphql metrics
26
27
gh graphql pr-engines
@@ -53,6 +54,7 @@ gh repos
53
54
gh repos add-template-oss
54
55
gh repos clone
55
56
gh repos delete-branches
57
+ gh repos enable-lint-feature
56
58
gh repos metrics
57
59
gh repos publish-repo
58
60
gh repos pull
@@ -386,6 +388,7 @@ Commands:
386
388
npx -p @npmcli/stafftools gh graphql clone Clone repos into a directory
387
389
npx -p @npmcli/stafftools gh graphql comment Comment on pull requests
388
390
npx -p @npmcli/stafftools gh graphql delete-branches Delete branches of repos with no remote counterpart
391
+ npx -p @npmcli/stafftools gh graphql enable-lint-feature Enable lint feature like prettier
389
392
npx -p @npmcli/stafftools gh graphql merge Merge pull requests
390
393
npx -p @npmcli/stafftools gh graphql pr-engines Get engine changes in a pull request
391
394
npx -p @npmcli/stafftools gh graphql publish-release Merge pending release PRs and publish the resulting release
@@ -537,6 +540,44 @@ Other Options:
537
540
--config Path to JSON config file
538
541
`
539
542
543
+ exports [ `test/gh.mjs TAP all commands help graphql enable-lint-feature > must match snapshot 1` ] = `
544
+ npx -p @npmcli/stafftools gh graphql enable-lint-feature
545
+
546
+ Enable lint feature like prettier
547
+
548
+ Command Options:
549
+ --query path to a query file passed directly to gh api graphql [string] [required]
550
+ --cache how long for gh to cache the query [string] [default: "1m"]
551
+ --report shorthand for --template=report [boolean] [default: false]
552
+ --remote name of the remote [required] [default: "origin"]
553
+ --force delete existing branch [boolean] [default: false]
554
+ --sync whether to sync the repo [boolean] [default: true]
555
+ --configName template-oss config setting name [string] [default: "prettier"]
556
+ --templateOSSRange required template-oss version range [string] [default: ">=4.23.0"]
557
+ --lintFixCommitMessage lintfix commit message [string] [default: "chore: run prettier"]
558
+ --prBody PR body [string] [default: "Enable and run prettier"]
559
+ --branchName branch name to use [string] [default: "stafftools/enable-prettier"]
560
+ --devDependencies devDependencies to install [array] [default: ["prettier@*","eslint-config-prettier@*"]]
561
+ --exactDevDependencies devDependencies to install with --save-exact [array] [default: ["@github/prettier-config@0.0.6"]]
562
+ --install install deps [boolean] [default: false]
563
+
564
+ Global Options:
565
+ -c, --cwd base directory to run filesystem related commands [string] [default: "$HOME/projects"]
566
+ -l, --limit number of worker threads to spawn [number] [default: $NUM_CORES]
567
+ -f, --filter filters to be parsed as relaxed json and applied to the data [array]
568
+ -r, --reject rejectors to be parsed as relaxed json and applied to the data [array]
569
+ --clean whether to rimraf the cwd first [boolean] [default: false]
570
+ --template how to format the final output [string] [required] [choices: "json", "silent", "report"] [default: "report"]
571
+ --sort key to sort results by [string] [default: "id"]
572
+ --json shorthand for --template=json [boolean] [default: false]
573
+ --silent shorthand for --template=silent [boolean] [default: false]
574
+
575
+ Other Options:
576
+ --help Show help [boolean]
577
+ --version Show version number [boolean]
578
+ --config Path to JSON config file
579
+ `
580
+
540
581
exports [ `test/gh.mjs TAP all commands help graphql merge > must match snapshot 1` ] = `
541
582
npx -p @npmcli/stafftools gh graphql merge
542
583
@@ -1397,13 +1438,14 @@ npx -p @npmcli/stafftools gh repos
1397
1438
Fetch repos
1398
1439
1399
1440
Commands:
1400
- npx -p @npmcli/stafftools gh repos add-template-oss Add template-oss to a repo
1401
- npx -p @npmcli/stafftools gh repos clone Clone repos into a directory
1402
- npx -p @npmcli/stafftools gh repos delete-branches Delete branches of repos with no remote counterpart
1403
- npx -p @npmcli/stafftools gh repos publish-repo Publish repos from their default branch
1404
- npx -p @npmcli/stafftools gh repos pull Checkout and pull default branch of repos
1405
- npx -p @npmcli/stafftools gh repos repo-settings Set common settings on all repos
1406
- npx -p @npmcli/stafftools gh repos set-secret Set Publish Tokens
1441
+ npx -p @npmcli/stafftools gh repos add-template-oss Add template-oss to a repo
1442
+ npx -p @npmcli/stafftools gh repos clone Clone repos into a directory
1443
+ npx -p @npmcli/stafftools gh repos delete-branches Delete branches of repos with no remote counterpart
1444
+ npx -p @npmcli/stafftools gh repos enable-lint-feature Enable lint feature like prettier
1445
+ npx -p @npmcli/stafftools gh repos publish-repo Publish repos from their default branch
1446
+ npx -p @npmcli/stafftools gh repos pull Checkout and pull default branch of repos
1447
+ npx -p @npmcli/stafftools gh repos repo-settings Set common settings on all repos
1448
+ npx -p @npmcli/stafftools gh repos set-secret Set Publish Tokens
1407
1449
1408
1450
Command Options:
1409
1451
--cache how long for gh to cache the query [string] [default: "1h"]
@@ -1525,6 +1567,46 @@ Other Options:
1525
1567
--config Path to JSON config file
1526
1568
`
1527
1569
1570
+ exports [ `test/gh.mjs TAP all commands help repos enable-lint-feature > must match snapshot 1` ] = `
1571
+ npx -p @npmcli/stafftools gh repos enable-lint-feature
1572
+
1573
+ Enable lint feature like prettier
1574
+
1575
+ Command Options:
1576
+ --cache how long for gh to cache the query [string] [default: "1h"]
1577
+ --repos query to filter repos [string] [required] [default: "org:npm topic:npm-cli fork:true archived:false"]
1578
+ --table shorthand for --template=table [boolean] [default: false]
1579
+ --confirm shorthand for --template=confirm [boolean] [default: false]
1580
+ --report shorthand for --template=report [boolean] [default: false]
1581
+ --remote name of the remote [required] [default: "origin"]
1582
+ --force delete existing branch [boolean] [default: false]
1583
+ --sync whether to sync the repo [boolean] [default: true]
1584
+ --configName template-oss config setting name [string] [default: "prettier"]
1585
+ --templateOSSRange required template-oss version range [string] [default: ">=4.23.0"]
1586
+ --lintFixCommitMessage lintfix commit message [string] [default: "chore: run prettier"]
1587
+ --prBody PR body [string] [default: "Enable and run prettier"]
1588
+ --branchName branch name to use [string] [default: "stafftools/enable-prettier"]
1589
+ --devDependencies devDependencies to install [array] [default: ["prettier@*","eslint-config-prettier@*"]]
1590
+ --exactDevDependencies devDependencies to install with --save-exact [array] [default: ["@github/prettier-config@0.0.6"]]
1591
+ --install install deps [boolean] [default: false]
1592
+
1593
+ Global Options:
1594
+ -c, --cwd base directory to run filesystem related commands [string] [default: "$HOME/projects"]
1595
+ -l, --limit number of worker threads to spawn [number] [default: $NUM_CORES]
1596
+ -f, --filter filters to be parsed as relaxed json and applied to the data [array]
1597
+ -r, --reject rejectors to be parsed as relaxed json and applied to the data [array]
1598
+ --clean whether to rimraf the cwd first [boolean] [default: false]
1599
+ --template how to format the final output [string] [required] [choices: "json", "silent", "table", "confirm", "report"] [default: "report"]
1600
+ --sort key to sort results by [string] [default: "id"]
1601
+ --json shorthand for --template=json [boolean] [default: false]
1602
+ --silent shorthand for --template=silent [boolean] [default: false]
1603
+
1604
+ Other Options:
1605
+ --help Show help [boolean]
1606
+ --version Show version number [boolean]
1607
+ --config Path to JSON config file
1608
+ `
1609
+
1528
1610
exports [ `test/gh.mjs TAP all commands help repos metrics > must match snapshot 1` ] = `
1529
1611
npx -p @npmcli/stafftools gh repos metrics
1530
1612
0 commit comments