mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-21 11:14:56 +02:00
[GitHub] Allow custom search query (#2593)
This commit is contained in:
parent
d123e6007e
commit
7dcf09a876
2 changed files with 12 additions and 4 deletions
|
@ -22,6 +22,11 @@ class GitHubPullRequestBridge extends GithubIssueBridge {
|
|||
'c' => array(
|
||||
'name' => 'Show Pull Request Comments',
|
||||
'type' => 'checkbox'
|
||||
),
|
||||
'q' => array(
|
||||
'name' => 'Search Query',
|
||||
'defaultValue' => 'is:pr is:open sort:created-desc',
|
||||
'required' => true
|
||||
)
|
||||
),
|
||||
'Pull Request comments' => array(
|
||||
|
@ -37,5 +42,4 @@ class GitHubPullRequestBridge extends GithubIssueBridge {
|
|||
const BRIDGE_OPTIONS = array(0 => 'Project Pull Requests', 1 => 'Pull Request comments');
|
||||
const URL_PATH = 'pull';
|
||||
const SEARCH_QUERY_PATH = 'pulls';
|
||||
const SEARCH_QUERY = '?q=is%3Apr+sort%3Acreated-desc';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue