npm-update-package 0.25.0 → 0.26.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/README.md +7 -7
- package/dist/app.js +1 -1
- package/dist/main.js +1 -1
- package/dist/options/Options.js +1 -1
- package/dist/options/cliOptions.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,13 +60,6 @@ Package manager of your project
|
|
|
60
60
|
- `yarn`: Yarn
|
|
61
61
|
- default: `npm`
|
|
62
62
|
|
|
63
|
-
### `--pull-request-reviewers`
|
|
64
|
-
|
|
65
|
-
Reviewers of pull request
|
|
66
|
-
|
|
67
|
-
- type: string[]
|
|
68
|
-
- required: false
|
|
69
|
-
|
|
70
63
|
### `--pull-request-title`
|
|
71
64
|
|
|
72
65
|
Pull request title template
|
|
@@ -80,6 +73,13 @@ Pull request title template
|
|
|
80
73
|
- `level`: semver level (major/minor/patch)
|
|
81
74
|
- default: `chore(deps): {{level}} update {{{packageName}}} to v{{newVersion}}`
|
|
82
75
|
|
|
76
|
+
### `--reviewers`
|
|
77
|
+
|
|
78
|
+
User names to request reviews
|
|
79
|
+
|
|
80
|
+
- type: string[]
|
|
81
|
+
- required: false
|
|
82
|
+
|
|
83
83
|
## GitHub token
|
|
84
84
|
|
|
85
85
|
GitHub token is required to run npm-update-package.
|
package/dist/app.js
CHANGED
package/dist/main.js
CHANGED
|
@@ -57,7 +57,7 @@ const main = async ({ options, logger }) => {
|
|
|
57
57
|
githubRepo,
|
|
58
58
|
pullRequestTitleCreator,
|
|
59
59
|
logger,
|
|
60
|
-
reviewers: options.
|
|
60
|
+
reviewers: options.reviewers
|
|
61
61
|
});
|
|
62
62
|
const commitMessageCreator = new git_1.CommitMessageCreator(options.commitMessage);
|
|
63
63
|
const pullRequestFinder = new github_1.PullRequestFinder(pullRequests);
|
package/dist/options/Options.js
CHANGED
|
@@ -13,7 +13,7 @@ const Options = (0, io_ts_1.intersection)([
|
|
|
13
13
|
pullRequestTitle: io_ts_1.string
|
|
14
14
|
}),
|
|
15
15
|
(0, io_ts_1.partial)({
|
|
16
|
-
|
|
16
|
+
reviewers: (0, io_ts_1.array)(io_ts_1.string)
|
|
17
17
|
})
|
|
18
18
|
]);
|
|
19
19
|
exports.isOptions = Options.is;
|
|
@@ -42,17 +42,17 @@ exports.cliOptions = [
|
|
|
42
42
|
],
|
|
43
43
|
default: package_manager_1.PackageManagerName.Npm
|
|
44
44
|
},
|
|
45
|
-
{
|
|
46
|
-
name: 'pull-request-reviewers',
|
|
47
|
-
description: 'Reviewers of pull request',
|
|
48
|
-
type: OptionType_1.OptionType.StringArray,
|
|
49
|
-
required: false
|
|
50
|
-
},
|
|
51
45
|
{
|
|
52
46
|
name: 'pull-request-title',
|
|
53
47
|
description: 'Pull request title template',
|
|
54
48
|
type: OptionType_1.OptionType.String,
|
|
55
49
|
required: false,
|
|
56
50
|
default: 'chore(deps): {{level}} update {{{packageName}}} to v{{newVersion}}'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'reviewers',
|
|
54
|
+
description: 'User names to request reviews',
|
|
55
|
+
type: OptionType_1.OptionType.StringArray,
|
|
56
|
+
required: false
|
|
57
57
|
}
|
|
58
58
|
];
|