Adopt Effect JSON and DateTime idioms (#2559)
Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
3 files changed
+38
-24
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
|
||||
import * as NodeServices from "@effect/platform-node/NodeServices";
|
||||
import { Config, Data, Effect, Layer, Logger, Schema } from "effect";
|
||||
import { Config, Data, DateTime, Effect, Layer, Logger, Schema } from "effect";
|
||||
import { Argument, Command, Flag } from "effect/unstable/cli";
|
||||
import {
|
||||
FetchHttpClient,
|
||||
@@ -201,6 +201,7 @@ export const notifyDiscordReleaseCommand = Command.make(
|
||||
);
|
||||
|
||||
const webhookUrl = yield* DiscordWebhookUrl;
|
||||
const timestamp = DateTime.formatIso(yield* DateTime.now);
|
||||
const payload = buildDiscordReleaseAnnouncement({
|
||||
target,
|
||||
roleId,
|
||||
@@ -208,7 +209,7 @@ export const notifyDiscordReleaseCommand = Command.make(
|
||||
version: releaseVersion,
|
||||
tag,
|
||||
releaseUrl,
|
||||
timestamp: new Date().toISOString(),
|
||||
timestamp,
|
||||
});
|
||||
|
||||
yield* Effect.logInfo("discord release announcement payload built").pipe(
|
||||
|
||||
Reference in new issue
Block a user