@blogic-cz/agent-tools 0.14.35 → 0.14.36
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/package.json +1 -1
- package/src/gh-tool/pr/core.ts +4 -1
- package/src/gh-tool/types.ts +6 -0
package/package.json
CHANGED
package/src/gh-tool/pr/core.ts
CHANGED
|
@@ -244,7 +244,10 @@ export const viewPR = Effect.fn("pr.viewPR")(function* (prNumber: number | null)
|
|
|
244
244
|
if (prNumber !== null) {
|
|
245
245
|
args.push(String(prNumber));
|
|
246
246
|
}
|
|
247
|
-
args.push(
|
|
247
|
+
args.push(
|
|
248
|
+
"--json",
|
|
249
|
+
"number,url,title,headRefName,baseRefName,state,isDraft,mergeable,body,reviewDecision,reviewRequests",
|
|
250
|
+
);
|
|
248
251
|
|
|
249
252
|
const info = yield* gh.runGhJson<PRViewInfo>(args);
|
|
250
253
|
return info;
|
package/src/gh-tool/types.ts
CHANGED
|
@@ -13,8 +13,14 @@ export type PRInfo = {
|
|
|
13
13
|
mergeable: "MERGEABLE" | "CONFLICTING" | "UNKNOWN";
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
+
export type ReviewRequest =
|
|
17
|
+
| { __typename: "User"; login: string }
|
|
18
|
+
| { __typename: "Team"; name: string; slug: string };
|
|
19
|
+
|
|
16
20
|
export type PRViewInfo = PRInfo & {
|
|
17
21
|
body: string;
|
|
22
|
+
reviewDecision: "APPROVED" | "CHANGES_REQUESTED" | "REVIEW_REQUIRED" | "";
|
|
23
|
+
reviewRequests: ReviewRequest[];
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
export type ReviewThread = {
|