Search Repositories

github.search_repos
ActionBusiness appsconnection required

Calls the GitHub API GET /search/repositories.

Search repositories by name, topic, language or any search qualifier.

Connection

Required
Yes — the node will not save without one
Auth type
Bearer token
Providers
GitHub
Secret shape
the GitHub personal access token
Resolved by
config.connection_id, else node.connection_id, else the tenant's sole GitHub connection

Configuration

4 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
q
GitHub search query, including any qualifiers such as repo: or language:.
stringYes——language:python stars:>100
sort
Sort by popularity or activity instead of best match.
stringNo—one of "stars", "forks", "help-wanted-issues", "updated"—
order
Sort direction.
stringNo—one of "asc", "desc"—
max_items
Stop after this many rows; further pages are followed via the Link header.
numberNo1001–1000—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "max_items": 100,
  "q": "language:python stars:>100"
}

Output

One shape.

result

FieldTypeExample
items
The matching repositories.
array—
items[].id
GitHub's internal repository id.
number—
items[].name
Repository name.
string—
items[].full_name
owner/repo.
string—
items[].private
True for a private repository.
boolean—
items[].html_url
Link to the repository.
string—
items[].description
Repository description.
string—
items[].language
Its primary language.
string—
items[].stargazers_count
How many stars it has.
number—
count
How many rows this step returned.
number—
total_count
How many matches GitHub found, beyond this page.
number—
incomplete_results
True when GitHub timed out and the results are partial.
boolean—
{
  "count": 0,
  "incomplete_results": false,
  "items": [
    {
      "description": "",
      "full_name": "",
      "html_url": "",
      "id": 0,
      "language": "",
      "name": "",
      "private": false,
      "stargazers_count": 0
    }
  ],
  "total_count": 0
}

Notes

  • GitHub returns at most 1000 results for any search, however high max_items is.

See Search Repositories run in a workflow.

In a technical demo we add the GitHub connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.