@ffflorian/gh-open 3.15.0 → 3.15.2
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/RepositoryService.js +2 -2
- package/dist/cli.js +2 -2
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import logdown from 'logdown';
|
|
1
2
|
import fs from 'node:fs/promises';
|
|
2
3
|
import path from 'node:path';
|
|
3
|
-
import logdown from 'logdown';
|
|
4
4
|
import { GitHubClient } from './GitHubClient.js';
|
|
5
5
|
export class RepositoryService {
|
|
6
6
|
constructor(options) {
|
|
@@ -36,7 +36,7 @@ export class RepositoryService {
|
|
|
36
36
|
const errorMessage = `Could not convert GitHub URL "${url}" to pull request`;
|
|
37
37
|
throw new Error(errorMessage);
|
|
38
38
|
}
|
|
39
|
-
const {
|
|
39
|
+
const { branch, project, user } = match.groups;
|
|
40
40
|
try {
|
|
41
41
|
const response = await this.gitHubClient.getPullRequestByBranch(user, project, branch);
|
|
42
42
|
if (response && response._links && response._links.html && response._links.html.href) {
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import fs from 'node:fs/promises';
|
|
3
|
-
import path from 'node:path';
|
|
4
2
|
import { program as commander } from 'commander';
|
|
5
3
|
import { findUp } from 'find-up';
|
|
4
|
+
import fs from 'node:fs/promises';
|
|
5
|
+
import path from 'node:path';
|
|
6
6
|
import open from 'open';
|
|
7
7
|
import { RepositoryService } from './RepositoryService.js';
|
|
8
8
|
const __dirname = import.meta.dirname;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Florian Imdahl <git@ffflorian.de>",
|
|
3
3
|
"bin": "dist/cli.js",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"commander": "14.0.
|
|
5
|
+
"commander": "14.0.3",
|
|
6
6
|
"find-up": "8.0.0",
|
|
7
7
|
"logdown": "3.3.1",
|
|
8
8
|
"open": "11.0.0"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"rimraf": "6.1.2",
|
|
15
15
|
"tsx": "4.21.0",
|
|
16
16
|
"typescript": "5.9.3",
|
|
17
|
-
"vitest": "4.0.
|
|
17
|
+
"vitest": "4.0.18"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">= 21"
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"test": "vitest run"
|
|
44
44
|
},
|
|
45
45
|
"type": "module",
|
|
46
|
-
"version": "3.15.
|
|
47
|
-
"gitHead": "
|
|
46
|
+
"version": "3.15.2",
|
|
47
|
+
"gitHead": "59997e7c64b551213644945256b13ff3ba1ccfcd"
|
|
48
48
|
}
|