mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 05:03:44 +08:00
feat: Fix link in Github's PR (#3686)
This commit is contained in:
@@ -9,6 +9,7 @@ module.exports = async (ctx) => {
|
||||
const repo = ctx.params.repo;
|
||||
|
||||
const host = `https://github.com/${user}/${repo}/pulls`;
|
||||
const link = `https://github.com/${user}/${repo}/pull`;
|
||||
const url = `https://api.github.com/repos/${user}/${repo}/pulls`;
|
||||
|
||||
const response = await got({
|
||||
@@ -28,7 +29,7 @@ module.exports = async (ctx) => {
|
||||
title: item.title,
|
||||
description: md.render(item.body) || 'No description',
|
||||
pubDate: new Date(item.created_at).toUTCString(),
|
||||
link: `${host}/${item.number}`,
|
||||
link: `${link}/${item.number}`,
|
||||
})),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user