@qotaq/lalphgram 0.1.1 → 0.1.2

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.
@@ -37,7 +37,7 @@ const makeRepoFromFullName = fullName => new _GitHubSchemas.GitHubRepo({
37
37
  html_url: ""
38
38
  });
39
39
  const isCISuccess = (state, checkRuns) => {
40
- if (checkRuns.length === 0) return state === "success";
40
+ if (checkRuns.length === 0) return state !== "failure";
41
41
  const allChecksCompleted = _effect.Array.every(checkRuns, cr => cr.conclusion !== null);
42
42
  const allChecksPassed = _effect.Array.every(checkRuns, cr => cr.conclusion === "success" || cr.conclusion === "skipped");
43
43
  return allChecksCompleted && allChecksPassed && state !== "failure";
@@ -37,6 +37,6 @@ export declare class AutoMerge extends AutoMerge_base {
37
37
  * @since 1.0.0
38
38
  * @category layers
39
39
  */
40
- export declare const AutoMergeLive: Layer.Layer<AutoMerge, never, LalphConfig | GitHubClient | AppRuntimeConfig>;
40
+ export declare const AutoMergeLive: Layer.Layer<AutoMerge, never, GitHubClient | LalphConfig | AppRuntimeConfig>;
41
41
  export {};
42
42
  //# sourceMappingURL=AutoMerge.d.ts.map
@@ -15,12 +15,12 @@ export { ABORT_BUTTON_LABEL, APPROVE_BUTTON_LABEL, BUFFER_BUTTON_LABEL, BUG_BUTT
15
15
  * @since 1.0.0
16
16
  * @category layers
17
17
  */
18
- export declare const MainLayer: Layer.Layer<import("./PlanOverviewUploader.js").PlanOverviewUploader | import("./OctokitClient.js").OctokitClient | import("./ProjectStore.js").ProjectStore | MessengerAdapter | PlanSession | LalphConfig | TaskTracker | GitHubClient | AutoMerge | PullRequestTracker | BranchParser | CommentTimer, import("./PlanOverviewUploader.js").PlanOverviewUploaderError | import("./OctokitClient.js").OctokitClientError | import("./MessengerAdapter/MessengerAdapter.js").MessengerAdapterError | import("./LalphConfig.js").LalphConfigError | import("./LinearSdkClient.js").LinearSdkClientError | import("./PullRequestTracker.js").PullRequestTrackerError, import("@effect/platform/HttpClient").HttpClient | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | import("./AppContext.js").AppContext | import("@effect/platform/CommandExecutor").CommandExecutor | import("./TelegramConfig.js").TelegramConfig | import("./AppRuntimeConfig.js").AppRuntimeConfig | import("./PlanSession.js").PlanCommandBuilder>;
18
+ export declare const MainLayer: Layer.Layer<AutoMerge | GitHubClient | LalphConfig | import("./OctokitClient.js").OctokitClient | MessengerAdapter | TaskTracker | PullRequestTracker | BranchParser | CommentTimer | PlanSession | import("./ProjectStore.js").ProjectStore | import("./PlanOverviewUploader.js").PlanOverviewUploader, import("./LalphConfig.js").LalphConfigError | import("./OctokitClient.js").OctokitClientError | import("./MessengerAdapter/MessengerAdapter.js").MessengerAdapterError | import("./LinearSdkClient.js").LinearSdkClientError | import("./PullRequestTracker.js").PullRequestTrackerError | import("./PlanOverviewUploader.js").PlanOverviewUploaderError, import("./AppRuntimeConfig.js").AppRuntimeConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | import("./AppContext.js").AppContext | import("@effect/platform/CommandExecutor").CommandExecutor | import("./TelegramConfig.js").TelegramConfig | import("./PlanSession.js").PlanCommandBuilder | import("@effect/platform/HttpClient").HttpClient>;
19
19
  /**
20
20
  * The main event loop that boots the chat state machine, bridges streams,
21
21
  * and dispatches external events (PR/task notifications).
22
22
  * @since 1.0.0
23
23
  * @category event-loop
24
24
  */
25
- export declare const runEventLoop: Effect.Effect<void, import("./MessengerAdapter/MessengerAdapter.js").MessengerAdapterError, import("./PlanOverviewUploader.js").PlanOverviewUploader | import("./ProjectStore.js").ProjectStore | MessengerAdapter | PlanSession | TaskTracker | GitHubClient | AutoMerge | PullRequestTracker | BranchParser | CommentTimer>;
25
+ export declare const runEventLoop: Effect.Effect<void, import("./MessengerAdapter/MessengerAdapter.js").MessengerAdapterError, AutoMerge | GitHubClient | MessengerAdapter | TaskTracker | PullRequestTracker | BranchParser | CommentTimer | PlanSession | import("./ProjectStore.js").ProjectStore | import("./PlanOverviewUploader.js").PlanOverviewUploader>;
26
26
  //# sourceMappingURL=EventLoop.d.ts.map
@@ -28,7 +28,7 @@ const makeRepoFromFullName = fullName => new GitHubRepo({
28
28
  html_url: ""
29
29
  });
30
30
  const isCISuccess = (state, checkRuns) => {
31
- if (checkRuns.length === 0) return state === "success";
31
+ if (checkRuns.length === 0) return state !== "failure";
32
32
  const allChecksCompleted = Array.every(checkRuns, cr => cr.conclusion !== null);
33
33
  const allChecksPassed = Array.every(checkRuns, cr => cr.conclusion === "success" || cr.conclusion === "skipped");
34
34
  return allChecksCompleted && allChecksPassed && state !== "failure";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qotaq/lalphgram",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Notification service for task tracker and GitHub events",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -44,7 +44,7 @@ const makeRepoFromFullName = (fullName: string) =>
44
44
  })
45
45
 
46
46
  const isCISuccess = (state: string, checkRuns: ReadonlyArray<{ readonly conclusion: string | null }>) => {
47
- if (checkRuns.length === 0) return state === "success"
47
+ if (checkRuns.length === 0) return state !== "failure"
48
48
  const allChecksCompleted = Array.every(checkRuns, (cr) => cr.conclusion !== null)
49
49
  const allChecksPassed = Array.every(checkRuns, (cr) => cr.conclusion === "success" || cr.conclusion === "skipped")
50
50
  return allChecksCompleted && allChecksPassed && state !== "failure"