Skip to main content
POST
/
github
/
glob
Find files matching a glob pattern
curl --request POST \
  --url https://apigcp.trynia.ai/v2/github/glob \
  --header 'Content-Type: application/json' \
  --data '
{
  "repository": "facebook/react",
  "pattern": "packages/react-reconciler/src/*.js",
  "ref": "HEAD"
}
'
{
  "matched_files": [
    "<string>"
  ],
  "total_matches": 123
}

Body

application/json
repository
string
required
Example:

"facebook/react"

pattern
string
required
Example:

"packages/react-reconciler/src/*.js"

ref
string
default:HEAD

Response

200 - application/json

Matching files

matched_files
string[]
total_matches
integer