Skip to content

Instantly share code, notes, and snippets.

View Yazan98's full-sized avatar
🚀
busy building things ....

Yazan Tarifi Yazan98

🚀
busy building things ....
View GitHub Profile
@Yazan98
Yazan98 / GithubDependenciesManager.ts
Created October 20, 2021 23:30
Send Github Api Request to Validate Library Releases
export class GithubDependenciesManager {
private static GITHUB_LIBRARIES_FILE = "github-libraries.json";
private static CONSOLE_LOGGING_KEY = "[Github Dependencies Manager]";
private static GITHUB_CACHE_FILE = "github-libraries-cache.json";
private static CONFIG_FILE = "config.json";
/**
* Main Method to Start inside This Manager
* 1. Create and Validate the Local Json Files
@Yazan98
Yazan98 / MessagingManager.ts
Created October 20, 2021 23:36
Send Slack Message in NestJs
private static sendSlackMessage(configFile: ApplicationConfigFile, message: string) {
try {
MessagingManager.getSlackApplicationInstance(configFile.signingSecret, configFile.token).client.chat.postMessage({
channel: configFile.channelId,
mrkdwn: true,
text: message,
as_user: true,
parse: "full",
username: "Zilon"
}).then((response) => {