comfy-pr 0.2.18 → 0.2.19
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/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/src/analyzePullsStatus.ts +9 -3
- package/src/followRuleSchema.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.2.19](https://github.com/drip-art/Comfy-Registry-PR/compare/v0.2.18...v0.2.19) (2024-06-28)
|
|
6
|
+
|
|
5
7
|
### [0.2.18](https://github.com/drip-art/Comfy-Registry-PR/compare/v0.2.17...v0.2.18) (2024-06-27)
|
|
6
8
|
|
|
7
9
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ import type { zPullStatus } from "./zod/zPullsStatus";
|
|
|
13
13
|
export const DashboardDetails = db.collection<any>("DashboardDetails");
|
|
14
14
|
if (import.meta.main) {
|
|
15
15
|
const r = peekYaml(await analyzePullsStatus());
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
// await mkdir(".cache").catch(() => null);
|
|
18
18
|
// await writeFile(".cache/dump.yaml", YAML.stringify(r));
|
|
19
19
|
// await writeFile(".cache/dump.csv", csvFormat(r));
|
|
@@ -78,7 +78,13 @@ export function analyzePullsStatusPipeline() {
|
|
|
78
78
|
ownername: "$base.user.login",
|
|
79
79
|
head: { $concat: ["$user.login", ":", "$type"] },
|
|
80
80
|
comments: { $size: "$comments" },
|
|
81
|
-
|
|
81
|
+
comments_author: {
|
|
82
|
+
$trim: { input: {$reduce: {
|
|
83
|
+
input: "$comments.user.login",
|
|
84
|
+
initialValue: "",
|
|
85
|
+
in: { $concat: ["$$value", " ", "$$this"] },
|
|
86
|
+
},}, chars: " " }
|
|
87
|
+
},
|
|
82
88
|
lastwords: { $arrayElemAt: ["$comments", -1] },
|
|
83
89
|
latest_comment_at: { $toDate: "$latest_comment_at" },
|
|
84
90
|
actived_at: 1,
|
|
@@ -106,7 +112,7 @@ export function analyzePullsStatusPipeline() {
|
|
|
106
112
|
lastwords: string;
|
|
107
113
|
on_registry_at: Date;
|
|
108
114
|
on_registry: boolean;
|
|
109
|
-
|
|
115
|
+
comments_author: string;
|
|
110
116
|
ownername: string;
|
|
111
117
|
repository: string;
|
|
112
118
|
state: "OPEN" | "MERGED" | "CLOSED";
|