forked from ubiquity/ubiquibot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage-test.ts
More file actions
50 lines (46 loc) · 2.18 KB
/
Copy pathmessage-test.ts
File metadata and controls
50 lines (46 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { telegramFormattedNotifier, telegramNotifier } from "../adapters/telegram/helpers";
const chatIds = ["tg1", "tg2", "tg3"]; // SHOULD update chatIds with valid ones
export async function messageTests() {
/**@method telegramNotifier - call unformatted issue */
await telegramNotifier({
chatIds: chatIds,
action: `new issue`,
title: `Optimize CI/CD Build Speed`,
description: `I worked through getting the build process to work by force \nmoving all dev dependencies into dependencies, but \nnow the build process is extremely slow on vercel.`,
id: `10`,
ref: `https://github.com/ubiquity/ubiquity-dollar/issues/10`,
user: `pavlovcik`,
});
/**@method telegramNotifier - call unformatted pull */
await telegramNotifier({
chatIds: chatIds,
action: `new pull`,
title: `Enhancement/styles`,
description: `Small enhancements but mostly renamed the \ninternal smart contract references, and \nadded support for DAI and USDT in the inventory.`,
id: `246`,
ref: `https://github.com/ubiquity/ubiquity-dollar/pull/246`,
user: `pavlovcik`,
});
/**@method telegramFormattedNotifier - call formatted issue */
await telegramFormattedNotifier({
chatIds: chatIds,
text:
`<b>new issue: Optimize CI/CD Build Speed</b> ` +
`<a href="https://github.com/ubiquity/ubiquity-dollar/issues/10">#10</a> ` +
`<code>@</code>` +
`<a href="https://github.com/pavlovcik">pavlovcik</a>\n` +
`<code>I worked through getting the build process to work by force \nmoving all dev dependencies into dependencies, but \nnow the build process is extremely slow on vercel.</code>`,
parseMode: "HTML",
});
/**@method telegramFormattedNotifier - call formatted pull */
await telegramFormattedNotifier({
chatIds: chatIds,
text:
`<b>new pull: Enhancement/styles</b> ` +
`<a href="https://github.com/ubiquity/ubiquity-dollar/pull/246">#246</a> ` +
`<code>@</code>` +
`<a href="https://github.com/pavlovcik">pavlovcik</a>\n` +
`<code>Small enhancements but mostly renamed the \ninternal smart contract references, and \nadded support for DAI and USDT in the inventory.</code>`,
parseMode: "HTML",
});
}