perf: beautify github repo star message with emoji

pull/100/head
moonrailgun 2 years ago
parent ae03420b9e
commit 22651c74bf

@ -235,7 +235,7 @@ class GithubSubscribeService extends TcService {
const repo = event.repository.full_name;
const repoUrl = event.repository.html_url;
const repoStarCount = event.repository.stargazers_count;
const message = `[url=${userUrl}]${name}[/url] starred [url=${repoUrl}]${repo}[/url](total ${repoStarCount} stargazers)`;
const message = `:tada: [url=${userUrl}]${name}[/url] starred [url=${repoUrl}]${repo}[/url](total ${repoStarCount} stargazers)`;
await this.sendMessageToSubscribes(ctx, repo, message);
}
}

Loading…
Cancel
Save