[GitHub] Allow custom search query (#2593)

This commit is contained in:
Yaman Qalieh 2022-04-03 04:07:35 -04:00 committed by GitHub
parent d123e6007e
commit 7dcf09a876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View file

@ -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';
}