@evanpurkhiser/tooling-personal 1.52.0 → 1.54.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/assignees.js CHANGED
@@ -78,9 +78,7 @@ async function* getAssignees(repo) {
78
78
  const items = !isOrganization
79
79
  ? userAssignees
80
80
  : (0, fast_merge_async_iterators_1.default)(userAssignees, teamAssignees);
81
- const assigneeesToIgnore = config_1.config
82
- .get('ignoreAssignees')
83
- .map(value => new RegExp(value));
81
+ const assigneesToIgnore = config_1.config.get('ignoreAssignees').map(value => new RegExp(value));
84
82
  for await (const result of items) {
85
83
  const assignees = isUser(result)
86
84
  ? result.repository.assignableUsers.nodes.map(user => ({
@@ -96,7 +94,7 @@ async function* getAssignees(repo) {
96
94
  name: team.name,
97
95
  }));
98
96
  // Remove assignees that are ignored
99
- const filteredAssignees = assignees.filter(assignee => !assigneeesToIgnore.some(r => r.test(assignee.slug)));
97
+ const filteredAssignees = assignees.filter(assignee => !assigneesToIgnore.some(r => r.test(assignee.slug)));
100
98
  yield* filteredAssignees;
101
99
  }
102
100
  }
@@ -31,16 +31,14 @@ async function buildPickError(git, sha, base, baseSha, parentSha, conflictLines)
31
31
  '--',
32
32
  ...conflictFiles,
33
33
  ])).trim();
34
- if (candidateLog) {
35
- const count = candidateLog.split('\n').length;
36
- return new Error(`Cannot cherry-pick ${sha.slice(0, 8)} onto tip of ${base}: ` +
37
- `merge conflicts in ${conflictFiles.join(', ')}. ` +
38
- `${count} earlier local commit(s) changed those file(s); ` +
39
- `one or more is the source of the conflict and must be on the remote ` +
40
- `before a PR can be opened:\n${candidateLog}`);
34
+ const fileList = conflictFiles.map(file => `- ${file}`).join('\n');
35
+ const header = `Cannot cherry-pick ${sha.slice(0, 8)} onto tip of ${base}, merge conflicts in:\n${fileList}`;
36
+ if (!candidateLog) {
37
+ return new Error(header);
41
38
  }
42
- return new Error(`Cannot cherry-pick ${sha.slice(0, 8)} onto ${base}: ` +
43
- `content conflicts in ${conflictFiles.join(', ')}. Rebase locally and retry.`);
39
+ const candidates = candidateLog.split('\n');
40
+ const candidateList = candidates.map(line => `- ${line}`).join('\n');
41
+ return new Error(`${header}\n\n${candidates.length} earlier local commit(s) changed those file(s):\n${candidateList}`);
44
42
  }
45
43
  /**
46
44
  * Build a commit object equivalent to cherry-picking `sha` onto `base`, without
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@evanpurkhiser/tooling-personal",
4
- "version": "1.52.0",
4
+ "version": "1.54.0",
5
5
  "description": "Evan Purkhiser's personal tooling",
6
6
  "license": "MIT",
7
7
  "author": "Evan Purkhiser",
@@ -13,16 +13,6 @@
13
13
  "dist/**",
14
14
  "README.md"
15
15
  ],
16
- "devEngines": {
17
- "runtime": {
18
- "name": "node",
19
- "version": "^24.15.0"
20
- },
21
- "packageManager": {
22
- "name": "pnpm",
23
- "version": "11.0.0"
24
- }
25
- },
26
16
  "dependencies": {
27
17
  "@octokit/graphql-schema": "^10.54.0",
28
18
  "@types/convict": "^6.1.3",
@@ -50,6 +40,16 @@
50
40
  "ts-node": "^10.9.2",
51
41
  "typescript": "^5.8.3"
52
42
  },
43
+ "devEngines": {
44
+ "packageManager": {
45
+ "name": "pnpm",
46
+ "version": "11.0.0"
47
+ },
48
+ "runtime": {
49
+ "name": "node",
50
+ "version": "^24.15.0"
51
+ }
52
+ },
53
53
  "scripts": {
54
54
  "build": "tsc && chmod +x ./dist/index.js",
55
55
  "start": "ts-node ./src/index.ts",