Skip to content
Snippets Groups Projects
Commit db59a480 authored by Aya Morisawa's avatar Aya Morisawa
Browse files

Update github.ts

parent 0730f029
No related branches found
No related tags found
No related merge requests found
......@@ -85,9 +85,9 @@ module.exports = async (app: express.Application) => {
const action = event.action;
let title: string;
switch (action) {
case 'opened': title = 'New Issue'; break;
case 'closed': title = 'Issue Closed'; break;
case 'reopened': title = 'Issue Reopened'; break;
case 'opened': title = 'Issue opened'; break;
case 'closed': title = 'Issue closed'; break;
case 'reopened': title = 'Issue reopened'; break;
default: return;
}
post(`${title}: <${issue.number}>「${issue.title}」\n${issue.html_url}`);
......@@ -107,12 +107,12 @@ module.exports = async (app: express.Application) => {
handler.on('watch', event => {
const sender = event.sender;
post(`⭐️Starred by **${sender.login}**`);
post(`Starred by **${sender.login}**`);
});
handler.on('fork', event => {
const repo = event.forkee;
post(`🍴Forked:\n${repo.html_url}`);
post(`Forked:\n${repo.html_url}`);
});
handler.on('pull_request', event => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment