feat(route): github wiki history (#11700)

This commit is contained in:
Tony
2023-01-27 03:29:02 +11:00
committed by GitHub
parent 11ff4a2f98
commit c08afbfc8d
6 changed files with 89 additions and 39 deletions

View File

@@ -2,6 +2,12 @@ module.exports = {
'github.com': {
_name: 'GitHub',
'.': [
{
title: '仓库 Branches',
docs: 'https://docs.rsshub.app/programming.html#github',
source: ['/:user/:repo/branches', '/:user/:repo'],
target: '/github/branches/:user/:repo',
},
{
title: 'Issues / Pull Requests 评论',
docs: 'https://docs.rsshub.app/programming.html#github',
@@ -9,28 +15,16 @@ module.exports = {
target: '/github/comments/:user/:repo/:number',
},
{
title: '用户仓库',
title: '仓库 Contributors',
docs: 'https://docs.rsshub.app/programming.html#github',
source: '/:user',
target: '/github/repos/:user',
source: ['/:user/:repo/graphs/contributors', '/:user/:repo'],
target: '/github/contributors/:user/:repo',
},
{
title: '用户 Followers',
title: '文件 Commits',
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?',
source: '/:user/:repo/blob/:branch/*filepath',
target: '/github/file/:user/:repo/:branch/:filepath',
},
{
title: '仓库 Issue',
@@ -44,24 +38,18 @@ module.exports = {
source: ['/:user/:repo/pulls', '/:user/:repo/pulls/:id', '/:user/:repo'],
target: '/github/pull/:user/:repo',
},
{
title: '用户仓库',
docs: 'https://docs.rsshub.app/programming.html#github',
source: '/:user',
target: '/github/repos/:user',
},
{
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',
@@ -69,10 +57,28 @@ module.exports = {
target: '/github/starred_repos/:user',
},
{
title: '仓库 Contributors',
title: 'Topics',
docs: 'https://docs.rsshub.app/programming.html#github',
source: ['/:user/:repo/graphs/contributors', '/:user/:repo'],
target: '/github/contributors/:user/:repo',
source: '/topics',
target: '/github/topics/:name/:qs?',
},
{
title: 'Trending',
docs: 'https://docs.rsshub.app/programming.html#github',
source: '/trending',
target: '/github/trending/:since',
},
{
title: '用户 Followers',
docs: 'https://docs.rsshub.app/programming.html#github',
source: '/:user',
target: '/github/user/followers/:user',
},
{
title: 'Wiki 历史',
docs: 'https://docs.rsshub.app/programming.html#github',
source: ['/:user/:repo/wiki/:page/_history', '/:user/:repo/wiki/:page', '/:user/:repo/wiki/_history', '/:user/:repo/wiki'],
target: '/github/wiki/:user/:repo/:page',
},
],
},