import { getResumeUrls } from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.3/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = "A flow is requesting an approval to be resumed",
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeUrls(`channel-${channel}`);
await web.chat.postMessage({
channel,
text: text + " <" + approvalPage + "|approval page>",
});
}
Submitted by admin 476 days ago
import { getResumeEndpoints } from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.3/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = "A flow is requesting an approval to be resumed",
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`);
await web.chat.postMessage({
channel,
text: text + " <" + approvalPage + "|approval page>",
});
}
Submitted by admin 505 days ago
import {
getResumeEndpoints
} from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.3/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by admin 509 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.3/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by adam186 637 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/windmill@v1.70.1/mod.ts";
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.3/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by adam186 672 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/windmill@v1.42.1/mod.ts";
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.3/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by admin 722 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/windmill@v1.42.1/mod.ts";
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.3/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' ' + approvalPage
});
}
Submitted by admin 722 days ago