mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 02:58:08 +08:00
fix(route): fix GitHub route parameter conflict at trending.js and refactor to V2 (#8923)
* Fix(route): fix route parameter conflict at trending.js and change to V2 * Fix(route): modify the judgment condition of language parameter * Fix(docs): Update docs/programming.md Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Fix(docs): Update docs/en/programming.md Co-authored-by: Tony <TonyRL@users.noreply.github.com> * fix(docs/route): add author and sort routes * Fix(route): Update docs/en/programming.md Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Fix(route): sort routes Co-authored-by: Tony <TonyRL@users.noreply.github.com>
This commit is contained in:
@@ -8,6 +8,72 @@ module.exports = {
|
||||
source: ['/:user/:repo/:type/:number'],
|
||||
target: '/github/comments/:user/:repo/:type/:number',
|
||||
},
|
||||
{
|
||||
title: '用户仓库',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: '/:user',
|
||||
target: '/github/repos/:user',
|
||||
},
|
||||
{
|
||||
title: '用户 Followers',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: '/:user',
|
||||
target: '/github/user/followers/:user',
|
||||
},
|
||||
{
|
||||
title: 'Trending',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: '/trending',
|
||||
target: '/github/trending/:since',
|
||||
},
|
||||
{
|
||||
title: 'Trending',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: '/topics',
|
||||
target: '/github/topics/:name/:qs?',
|
||||
},
|
||||
{
|
||||
title: '仓库 Issue',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: ['/:user/:repo/issues', '/:user/:repo/issues/:id', '/:user/:repo'],
|
||||
target: '/github/issue/:user/:repo',
|
||||
},
|
||||
{
|
||||
title: '仓库 Pull Requests',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: ['/:user/:repo/pulls', '/:user/:repo/pulls/:id', '/:user/:repo'],
|
||||
target: '/github/pull/:user/:repo',
|
||||
},
|
||||
{
|
||||
title: '仓库 Stars',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: ['/:user/:repo/stargazers', '/:user/:repo'],
|
||||
target: '/github/stars/:user/:repo',
|
||||
},
|
||||
{
|
||||
title: '仓库 Branches',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: ['/:user/:repo/branches', '/:user/:repo'],
|
||||
target: '/github/branches/:user/:repo',
|
||||
},
|
||||
{
|
||||
title: '文件 Commits',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: '/:user/:repo/blob/:branch/*filepath',
|
||||
target: '/github/file/:user/:repo/:branch/:filepath',
|
||||
},
|
||||
{
|
||||
title: '用户 Starred Repositories',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: '/:user',
|
||||
target: '/github/starred_repos/:user',
|
||||
},
|
||||
{
|
||||
title: '仓库 Contributors',
|
||||
docs: 'https://docs.rsshub.app/programming.html#github',
|
||||
source: ['/:user/:repo/graphs/contributors', '/:user/:repo'],
|
||||
target: '/github/contributors/:user/:repo',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user