
GitHub Search
CertifiedSearch pull requests
GitHub Search
Search pull requests
Runs a GitHub pull request search and writes matching pull request metadata to Kestra internal storage. Anonymous execution cannot reach private repositories and may omit fields, and authenticated runs default to CREATED sorted in ascending order.
type: io.kestra.plugin.github.pulls.SearchExamples
Search for pull requests in a repository.
id: github_pulls_search_flow
namespace: company.team
tasks:
- id: search_pull_requests
type: io.kestra.plugin.github.pulls.Search
oauthToken: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
query: "repo:kestra-io/plugin-github is:open"
Search for open pull requests in a repository.
id: github_pulls_search_flow
namespace: company.team
tasks:
- id: search_open_pull_requests
type: io.kestra.plugin.github.pulls.Search
oauthToken: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
repository: kestra-io/plugin-github
open: TRUE
Properties
appInstallationToken string
GitHub App installation token
Installation access token generated by a GitHub App. Use this for repository-scoped app access instead of a user token.
assigned string
Pull requests assigned to user
Uses the assignee: qualifier for the given GitHub login
base string
Base branch filter
Adds the base: qualifier for the target branch name
closed booleanstring
Filter to closed pull requests
Adds the is: closed qualifier when set to true
closedAt string
Filter by closed date
Supports >, <, and range syntax (..) with ISO-8601 dates
commit string
Filter by commit SHA
Matches pull requests by commit SHA and requires at least seven characters
createdAt string
Filter by created date
Supports >, <, and range syntax (..) with ISO-8601 dates
createdByMe booleanstring
Only pull requests created by the caller
Adds author: @me. This option requires authenticated execution
draft booleanstring
Filter to draft pull requests
Adds the is: draft qualifier when set to true
endpoint string
GitHub API endpoint
GitHub or GitHub Enterprise API base URL such as https://api.github.com or https://ghe.acme.com/api/v3. Set this when targeting GitHub Enterprise or a non-default API endpoint.
fetchType string
STORESTOREFETCHFETCH_ONENONEResult handling mode
Controls how hits are exposed in outputs; default FETCH returns all hits in the response. FETCH_ONE returns only the first hit, STORE writes hits to Kestra storage and returns a URI, and NONE leaves outputs empty.
head string
Head branch filter
Adds the head: qualifier for the source branch name
jwtToken string
GitHub JWT token
GitHub App JWT used for app-level authentication. Use this when the task should authenticate as the app rather than a user.
login string
GitHub login
GitHub login used with oauthToken for authenticated requests. Leave unset when authenticating with jwtToken or appInstallationToken.
mentions string
Mentioned user
GitHub login to use with the mentions: qualifier
merged booleanstring
Filter to merged pull requests
Adds the is: merged qualifier when set to true
oauthToken string
GitHub OAuth token
GitHub personal access token used for authenticated requests. Can be used alone or with login.
open booleanstring
Filter to open pull requests
Adds the is: open qualifier when set to true
order string
ASCASCDESCSort direction
ASC sorts oldest first (default); DESC sorts newest first.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
query string
Search keywords and qualifiers
GitHub pull request search syntax combining keywords with qualifiers like repo, is, and label
repository string
Repository to search
owner/repo value used for the repo: qualifier
reviewRequested string
Review requested from user
Matches pull requests where a review has been requested from the given GitHub username.
sort string
CREATEDCREATEDUPDATEDCOMMENTSSort field
CREATED sorts by creation time (default); UPDATED by last update; COMMENTS by comment count.
title string
Title contains text
Matches pull requests with titles containing the given text
updatedAt string
Filter by last update
Supports >, <, and range syntax (..) with ISO-8601 dates
Outputs
row object
First hit
Available only when fetchType=FETCH_ONE; contains the first hit source.
rows array
Fetched hits
Available only when fetchType=FETCH; contains hit sources for the current response page.
size integer
Returned hit count
Number of hits included in outputs for the selected fetch type.
total integer
Total hits reported
Total hits reported by GitHub search, regardless of pagination.
uri string
uriStored hits URI
Available only when fetchType=STORE; Kestra internal storage path to the Ion file.