@evanpurkhiser/tooling-personal 1.29.0 → 1.30.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/cmd/pr.js CHANGED
@@ -16,7 +16,7 @@ const utils_1 = require("../utils");
16
16
  function getCommits(to) {
17
17
  return simple_git_1.default().log({ from: 'HEAD', to });
18
18
  }
19
- async function pr() {
19
+ async function pr(argv) {
20
20
  const username = await utils_1.getEmailUsername();
21
21
  const repo = await utils_1.getRepoKey();
22
22
  const { head, origin } = await utils_1.getBranchNames();
@@ -148,6 +148,7 @@ async function pr() {
148
148
  baseRefName: defaultBranch,
149
149
  headRefName: branchName,
150
150
  repositoryId: repoId,
151
+ draft: argv.draft,
151
152
  title,
152
153
  body,
153
154
  });
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ yargs_1.default(process.argv.slice(2))
18
18
  chalk_1.default.level = args.color ? 3 : 0;
19
19
  }
20
20
  }, true)
21
- .command('pr', 'Create and update PRs', pr_1.pr)
21
+ .command('pr', 'Create and update PRs', y => y.option('draft', { alias: 'd', boolean: true, desc: 'Create PR as a draft' }), pr_1.pr)
22
22
  .command('select-commit', 'Select a commit hash', select_commit_1.selectCommit)
23
23
  .demandCommand(1, '')
24
24
  .parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evanpurkhiser/tooling-personal",
3
- "version": "1.29.0",
3
+ "version": "1.30.0",
4
4
  "description": "Evan Purkhiser's personal tooling",
5
5
  "repository": "https://github.com/evanpurkhiser/tooling-personal",
6
6
  "author": "Evan Purkhiser",