docs: update github issue (#4151)
This commit is contained in:
parent
bfa4c9794b
commit
61cfa78c3a
|
|
@ -27,7 +27,7 @@ GitHub provides some official RSS feeds:
|
|||
|
||||
### Repo Issues
|
||||
|
||||
<RouteEn author="HenryQW" path="/github/issue/:user/:repo/:state?/:labels?" example="/github/issue/DIYgod/RSSHub/all/bug" :paramsDesc="['GitHub username', 'GitHub repo name', 'the state of the issues. Can be either `open`, `closed`, or `all`. Default: `open`.', 'a list of comma separated label names']" radar="1" />
|
||||
<RouteEn author="HenryQW AndreyMZ" path="/github/issue/:user/:repo/:state?/:labels?" example="/github/issue/DIYgod/RSSHub/all/bug" :paramsDesc="['GitHub username', 'GitHub repo name', 'the state of the issues. Can be either `open`, `closed`, or `all`. Default: `open`.', 'a list of comma separated label names']" radar="1" />
|
||||
|
||||
### Repo Pull Requests
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ GitHub 官方也提供了一些 RSS:
|
|||
|
||||
### 仓库 Issues
|
||||
|
||||
<Route author="HenryQW" example="/github/issue/DIYgod/RSSHub" path="/github/issue/:user/:repo" :paramsDesc="['用户名', '仓库名']" radar="1"/>
|
||||
<Route author="HenryQW AndreyMZ" example="/github/issue/DIYgod/RSSHub/open/RSS%20wanted" path="/github/issue/:user/:repo/:state?/:labels?" :paramsDesc="['用户名', '仓库名', 'issue 状态,可选`open`,`closed`或`all`,默认为`open`', '标签列表,以逗号分隔']" radar="1"/>
|
||||
|
||||
### 仓库 Pull Requests
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ module.exports = async (ctx) => {
|
|||
|
||||
ctx.state.data = {
|
||||
allowEmpty: true,
|
||||
title: `${user}/${repo} Issues`,
|
||||
title: `${user}/${repo}${state ? ' ' + state.replace(/^\S/, (s) => s.toUpperCase()) : ''} Issues${labels ? ' - ' + labels : ''}`,
|
||||
link: host,
|
||||
item: data
|
||||
.filter((item) => item.pull_request === undefined)
|
||||
|
|
|
|||
Loading…
Reference in New Issue