Skip to main content

Git

Execute as SQL style query against a github repo using mergestat-lite.


```yaml
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: github-check
spec:
schedule: "@every 1m"
github:
- githubToken: <toke>
query: SELECT count(*) FROM commits WHERE author_email = 'user@email.com'
FieldDescriptionSchemeRequired
queryQuery to be executed.\See mergestat-lite.for more details regarding syntax.string
*All other common fieldsCommon
Connection
connectionPath of an existing connection e.g. connection://github/org. Mutually exclusive with credentialsConnection
githubTokenGithub access token. Mutually exclusive with connectionEnvVarYes