fix: add missing author field in github and gitlab routes. (#5698)

This commit is contained in:
Search
2020-09-25 16:06:13 +05:30
committed by GitHub
parent b611728f7f
commit 25fb166ee4
7 changed files with 7 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ module.exports = async (ctx) => {
link: host,
item: data.map((item) => ({
title: item.title,
author: item.user.login,
description: item.body ? md.render(item.body) : 'No description',
pubDate: new Date(item.created_at).toUTCString(),
link: `${link}/${item.number}`,