@evanpurkhiser/tooling-personal 1.45.0 → 1.47.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-create.js
CHANGED
|
@@ -50,8 +50,8 @@ async function resolveReviewers(repo, slugs) {
|
|
|
50
50
|
return found;
|
|
51
51
|
}
|
|
52
52
|
async function prCreate(argv) {
|
|
53
|
-
if (!argv.title) {
|
|
54
|
-
throw new Error('--title is required');
|
|
53
|
+
if (!argv.title && !argv.updateOnly) {
|
|
54
|
+
throw new Error('--title is required when creating a PR');
|
|
55
55
|
}
|
|
56
56
|
const username = await (0, utils_1.getEmailUsername)();
|
|
57
57
|
const repo = await (0, utils_1.getRepoKey)();
|
|
@@ -33,7 +33,14 @@ async function suggestAssignees(argv) {
|
|
|
33
33
|
const { diff, rev, label } = await getDiffSource(argv.commit);
|
|
34
34
|
const fileHunks = (0, blame_1.parseDiff)(diff);
|
|
35
35
|
if (fileHunks.length === 0) {
|
|
36
|
-
|
|
36
|
+
console.error(`No files with prior history in ${label}`);
|
|
37
|
+
if (argv.format === 'slugs') {
|
|
38
|
+
console.log('');
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
console.log(JSON.stringify({ source: label, fileTotal: 0, hunkTotal: 0, suggestions: [], unresolved: [] }, null, 2));
|
|
42
|
+
}
|
|
43
|
+
return;
|
|
37
44
|
}
|
|
38
45
|
// 02. Blame every file + resolve the repo's assignable user directory
|
|
39
46
|
const [blame, resolver] = await Promise.all([
|
package/package.json
CHANGED