diff --git a/lib/routes/github/follower.js b/lib/routes/github/follower.js
index c87869cdf2..2121d3d915 100644
--- a/lib/routes/github/follower.js
+++ b/lib/routes/github/follower.js
@@ -42,6 +42,7 @@ module.exports = async (ctx) => {
link: host,
item: data.map((follower) => ({
title: `${follower.node.login} started following ${user}`,
+ author: follower.node.login,
description: `${follower.node.login}
`,
link: `https://github.com/${follower.node.login}`,
})),
diff --git a/lib/routes/github/pulls.js b/lib/routes/github/pulls.js
index b711b54700..b97b745309 100644
--- a/lib/routes/github/pulls.js
+++ b/lib/routes/github/pulls.js
@@ -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}`,
diff --git a/lib/routes/github/search.js b/lib/routes/github/search.js
index 9c5e861e59..8ed783bdd1 100644
--- a/lib/routes/github/search.js
+++ b/lib/routes/github/search.js
@@ -24,6 +24,7 @@ module.exports = async (ctx) => {
const a = $(this).find('.f4.text-normal > a');
const single = {
title: a.text(),
+ author: a.text().split('/')[0].trim(),
link: host.concat(a.attr('href')),
description: $(this).find('div p').text().trim(),
};
diff --git a/lib/routes/github/star.js b/lib/routes/github/star.js
index 1cb97c44dd..d44ea03bd3 100644
--- a/lib/routes/github/star.js
+++ b/lib/routes/github/star.js
@@ -43,6 +43,7 @@ module.exports = async (ctx) => {
link: host,
item: data.map((follower) => ({
title: `${follower.node.login} starred ${user}/${repo}`,
+ author: follower.node.login,
description: `${follower.node.login}
`,
link: `https://github.com/${follower.node.login}`,
})),
diff --git a/lib/routes/github/starred_repos.js b/lib/routes/github/starred_repos.js
index 13ee4c2919..ffd1a6a32f 100644
--- a/lib/routes/github/starred_repos.js
+++ b/lib/routes/github/starred_repos.js
@@ -52,6 +52,7 @@ module.exports = async (ctx) => {
description: `${user}’s starred repositories`,
item: data.map((repo) => ({
title: `${user} starred ${repo.node.name}`,
+ author: user,
description: `${repo.node.description === null ? 'no description' : repo.node.description}
primary language: ${
repo.node.primaryLanguage === null ? 'no primary language' : repo.node.primaryLanguage.name
}
stargazers: ${repo.node.stargazers.totalCount}
`,
diff --git a/lib/routes/github/trending.js b/lib/routes/github/trending.js
index 9a44def32d..a2518e2302 100644
--- a/lib/routes/github/trending.js
+++ b/lib/routes/github/trending.js
@@ -29,6 +29,7 @@ module.exports = async (ctx) => {
item = $(item);
return {
title: item.find('h1').text(),
+ author: item.find('h1').text().split('/')[0].trim(),
description: `${item.find('.pr-4').text()}
Language: ${item.find('span[itemprop="programmingLanguage"]').text() || 'unknown'}
Star: ${item.find('.muted-link').eq(0).text()}
diff --git a/lib/routes/gitlab/explore.js b/lib/routes/gitlab/explore.js
index ca7d43f79e..6feb623481 100644
--- a/lib/routes/gitlab/explore.js
+++ b/lib/routes/gitlab/explore.js
@@ -26,6 +26,7 @@ module.exports = async (ctx) => {
item = $(item);
return {
title: item.find('.project-full-name').text(),
+ author: item.find('.namespace-name').text().slice(0, -1).split('\n').join('').trim(),
description: item.find('.description').text(),
link: `https://gitlab.com${item.find('a.text-plain').attr('href')}`,
};