@blogic-cz/agent-tools 0.12.0 → 0.12.1
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/release.ts +10 -2
package/package.json
CHANGED
package/src/gh-tool/release.ts
CHANGED
|
@@ -72,7 +72,8 @@ type LatestRelease = {
|
|
|
72
72
|
tagName: string;
|
|
73
73
|
name: string;
|
|
74
74
|
createdAt: string;
|
|
75
|
-
|
|
75
|
+
publishedAt: string | null;
|
|
76
|
+
isLatest: boolean;
|
|
76
77
|
};
|
|
77
78
|
|
|
78
79
|
type ReleaseStatusResult = {
|
|
@@ -314,7 +315,14 @@ const deleteRelease = Effect.fn("release.deleteRelease")(function* (opts: {
|
|
|
314
315
|
const releaseStatus = Effect.fn("release.releaseStatus")(function* (repo: string | null) {
|
|
315
316
|
const gh = yield* GitHubService;
|
|
316
317
|
|
|
317
|
-
const args = [
|
|
318
|
+
const args = [
|
|
319
|
+
"release",
|
|
320
|
+
"list",
|
|
321
|
+
"--json",
|
|
322
|
+
"tagName,name,createdAt,publishedAt,isLatest",
|
|
323
|
+
"--limit",
|
|
324
|
+
"1",
|
|
325
|
+
];
|
|
318
326
|
if (repo !== null) {
|
|
319
327
|
args.push("--repo", repo);
|
|
320
328
|
}
|