mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 05:03:44 +08:00
feat: GitHub Repo Issues: add optional state and labels p... (#3766)
This commit is contained in:
@@ -7,6 +7,8 @@ const md = require('markdown-it')({
|
||||
module.exports = async (ctx) => {
|
||||
const user = ctx.params.user;
|
||||
const repo = ctx.params.repo;
|
||||
const state = ctx.params.state;
|
||||
const labels = ctx.params.labels;
|
||||
|
||||
const host = `https://github.com/${user}/${repo}/issues`;
|
||||
const url = `https://api.github.com/repos/${user}/${repo}/issues`;
|
||||
@@ -15,6 +17,8 @@ module.exports = async (ctx) => {
|
||||
method: 'get',
|
||||
url,
|
||||
params: {
|
||||
state: state,
|
||||
labels: labels,
|
||||
sort: 'created',
|
||||
access_token: config.github && config.github.access_token,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user