Implement remote status retrieval

This commit is contained in:
Akihiko Odaki 2018-03-31 19:55:00 +09:00
parent 7da60a0147
commit 68a9aac957
46 changed files with 468 additions and 198 deletions

View file

@ -42,7 +42,8 @@ module.exports = async (app: express.Application) => {
const commit = event.commit;
const parent = commit.parents[0];
queue.create('gitHubFailureReport', {
queue.create('http', {
type: 'gitHubFailureReport',
userId: bot._id,
parentUrl: parent.url,
htmlUrl: commit.html_url,

View file

@ -6,7 +6,7 @@ import * as uuid from 'uuid';
import autwh from 'autwh';
import redis from '../../../db/redis';
import User, { pack } from '../../../models/user';
import event from '../event';
import event from '../../../common/event';
import config from '../../../conf';
import signin from '../common/signin';