lalph 0.1.67 → 0.1.69
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/cli.mjs +3 -3
- package/package.json +1 -1
- package/src/Github/Cli.ts +4 -4
- package/src/Prd.ts +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -141392,8 +141392,8 @@ var GithubCli = class extends Service()("lalph/Github/Cli", { make: gen(function
|
|
|
141392
141392
|
};
|
|
141393
141393
|
}), provideService(ChildProcessSpawner, spawner));
|
|
141394
141394
|
const prFeedbackMd = (pr) => reviewComments(pr).pipe(map$5(({ comments, reviewThreads }) => {
|
|
141395
|
-
if (comments.length === 0 && reviewThreads.length === 0) return `No review comments found.`;
|
|
141396
141395
|
const eligibleReviewThreads = reviewThreads.filter((thread) => thread.shouldDisplayThread);
|
|
141396
|
+
if (comments.length === 0 && eligibleReviewThreads.length === 0) return `No review comments found.`;
|
|
141397
141397
|
let content = `# PR feedback
|
|
141398
141398
|
|
|
141399
141399
|
Comments are rendered in XML format.`;
|
|
@@ -142103,7 +142103,7 @@ var Prd = class extends Service()("lalph/Prd", { make: gen(function* () {
|
|
|
142103
142103
|
maybeRevertIssue,
|
|
142104
142104
|
revertUpdatedIssues: gen(function* () {
|
|
142105
142105
|
for (const issue of updatedIssues.values()) {
|
|
142106
|
-
if (issue.state
|
|
142106
|
+
if (issue.state === "done") continue;
|
|
142107
142107
|
yield* source.updateIssue({
|
|
142108
142108
|
issueId: issue.id,
|
|
142109
142109
|
state: "todo"
|
|
@@ -142442,7 +142442,7 @@ const commandSource = make$27("source").pipe(withDescription("Select the issue s
|
|
|
142442
142442
|
|
|
142443
142443
|
//#endregion
|
|
142444
142444
|
//#region package.json
|
|
142445
|
-
var version = "0.1.
|
|
142445
|
+
var version = "0.1.69";
|
|
142446
142446
|
|
|
142447
142447
|
//#endregion
|
|
142448
142448
|
//#region src/cli.ts
|
package/package.json
CHANGED
package/src/Github/Cli.ts
CHANGED
|
@@ -52,14 +52,14 @@ export class GithubCli extends ServiceMap.Service<GithubCli>()(
|
|
|
52
52
|
const prFeedbackMd = (pr: number) =>
|
|
53
53
|
reviewComments(pr).pipe(
|
|
54
54
|
Effect.map(({ comments, reviewThreads }) => {
|
|
55
|
-
if (comments.length === 0 && reviewThreads.length === 0) {
|
|
56
|
-
return `No review comments found.`
|
|
57
|
-
}
|
|
58
|
-
|
|
59
55
|
const eligibleReviewThreads = reviewThreads.filter(
|
|
60
56
|
(thread) => thread.shouldDisplayThread,
|
|
61
57
|
)
|
|
62
58
|
|
|
59
|
+
if (comments.length === 0 && eligibleReviewThreads.length === 0) {
|
|
60
|
+
return `No review comments found.`
|
|
61
|
+
}
|
|
62
|
+
|
|
63
63
|
let content = `# PR feedback
|
|
64
64
|
|
|
65
65
|
Comments are rendered in XML format.`
|
package/src/Prd.ts
CHANGED
|
@@ -239,7 +239,7 @@ export class Prd extends ServiceMap.Service<
|
|
|
239
239
|
maybeRevertIssue,
|
|
240
240
|
revertUpdatedIssues: Effect.gen(function* () {
|
|
241
241
|
for (const issue of updatedIssues.values()) {
|
|
242
|
-
if (issue.state
|
|
242
|
+
if (issue.state === "done") continue
|
|
243
243
|
yield* source.updateIssue({
|
|
244
244
|
issueId: issue.id!,
|
|
245
245
|
state: "todo",
|