mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
Update github.ts
This commit is contained in:
parent
0730f0299d
commit
db59a48027
@ -85,9 +85,9 @@ module.exports = async (app: express.Application) => {
|
|||||||
const action = event.action;
|
const action = event.action;
|
||||||
let title: string;
|
let title: string;
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case 'opened': title = 'New Issue'; break;
|
case 'opened': title = 'Issue opened'; break;
|
||||||
case 'closed': title = 'Issue Closed'; break;
|
case 'closed': title = 'Issue closed'; break;
|
||||||
case 'reopened': title = 'Issue Reopened'; break;
|
case 'reopened': title = 'Issue reopened'; break;
|
||||||
default: return;
|
default: return;
|
||||||
}
|
}
|
||||||
post(`${title}: <${issue.number}>「${issue.title}」\n${issue.html_url}`);
|
post(`${title}: <${issue.number}>「${issue.title}」\n${issue.html_url}`);
|
||||||
@ -107,12 +107,12 @@ module.exports = async (app: express.Application) => {
|
|||||||
|
|
||||||
handler.on('watch', event => {
|
handler.on('watch', event => {
|
||||||
const sender = event.sender;
|
const sender = event.sender;
|
||||||
post(`⭐️Starred by **${sender.login}**`);
|
post(`Starred by **${sender.login}**`);
|
||||||
});
|
});
|
||||||
|
|
||||||
handler.on('fork', event => {
|
handler.on('fork', event => {
|
||||||
const repo = event.forkee;
|
const repo = event.forkee;
|
||||||
post(`🍴Forked:\n${repo.html_url}`);
|
post(`Forked:\n${repo.html_url}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
handler.on('pull_request', event => {
|
handler.on('pull_request', event => {
|
||||||
|
Loading…
Reference in New Issue
Block a user