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 430 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 460 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 463 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 592 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 627 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 676 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 676 days ago