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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comfy-pr",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Make PRs that publishes ComfyUI Custom Nodes to [ComfyUI Registry]( https://www.comfyregistry.org/ ).",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -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
- comments_authors: "$comments.user.login",
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
- comments_authors: string;
115
+ comments_author: string;
110
116
  ownername: string;
111
117
  repository: string;
112
118
  state: "OPEN" | "MERGED" | "CLOSED";
@@ -38,6 +38,7 @@ const zFollowUpRule = z.object({
38
38
  author_email: mString,
39
39
  comments: mNumber,
40
40
  created_at: mDate,
41
+ comments_author: mString,
41
42
  head: mString,
42
43
  lastwords: mString,
43
44
  on_registry: z.boolean(),