@@ -21,6 +21,7 @@ gh graphql add-template-oss
2121gh graphql clone
2222gh graphql comment
2323gh graphql delete-branches
24+ gh graphql enable-lint-feature
2425gh graphql merge
2526gh graphql metrics
2627gh graphql pr-engines
@@ -53,6 +54,7 @@ gh repos
5354gh repos add-template-oss
5455gh repos clone
5556gh repos delete-branches
57+ gh repos enable-lint-feature
5658gh repos metrics
5759gh repos publish-repo
5860gh repos pull
@@ -386,6 +388,7 @@ Commands:
386388 npx -p @npmcli/stafftools gh graphql clone Clone repos into a directory
387389 npx -p @npmcli/stafftools gh graphql comment Comment on pull requests
388390 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
389392 npx -p @npmcli/stafftools gh graphql merge Merge pull requests
390393 npx -p @npmcli/stafftools gh graphql pr-engines Get engine changes in a pull request
391394 npx -p @npmcli/stafftools gh graphql publish-release Merge pending release PRs and publish the resulting release
@@ -537,6 +540,44 @@ Other Options:
537540 --config Path to JSON config file
538541`
539542
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/[email protected] "]] 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+
540581exports [ `test/gh.mjs TAP all commands help graphql merge > must match snapshot 1` ] = `
541582npx -p @npmcli/stafftools gh graphql merge
542583
@@ -1397,13 +1438,14 @@ npx -p @npmcli/stafftools gh repos
13971438Fetch repos
13981439
13991440Commands:
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
14071449
14081450Command Options:
14091451 --cache how long for gh to cache the query [string] [default: "1h"]
@@ -1525,6 +1567,46 @@ Other Options:
15251567 --config Path to JSON config file
15261568`
15271569
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/[email protected] "]] 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+
15281610exports [ `test/gh.mjs TAP all commands help repos metrics > must match snapshot 1` ] = `
15291611npx -p @npmcli/stafftools gh repos metrics
15301612
0 commit comments