github
The github command lets you query GitHub repository information directly without AI interpretation. It provides raw access to repository data including workflows, pull requests, runners, and workflow runs.
Usage
clanker github <subcommand> [flags]Subcommands
github list
List GitHub resources of a specific type. The resource type is a required positional argument.
clanker github list <resource> [flags]Supported Resources
| Resource | Aliases | Description |
|---|---|---|
repos | repositories | Accessible GitHub repositories |
runners | runner | Repository self-hosted runners |
workflows | workflow | GitHub Actions workflows |
runs | run | Recent workflow runs |
prs | pr, pullrequests, pull-requests | Recent pull requests |
Flags
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--repo | -r | string | From config | Repository in owner/repo format. Overrides the default repository from configuration |
Examples:
# List all accessible repositories
clanker github list repos
# List GitHub Actions workflows for a specific repo
clanker github list workflows -r myorg/myrepo
# List recent workflow runs
clanker github list runs -r myorg/myrepo
# List recent pull requests
clanker github list prs -r myorg/myrepo
# List self-hosted runners
clanker github list runners -r myorg/myrepoTIP
The repos resource does not require the --repo flag, as it lists all repositories accessible to your configured token. All other resources require either the --repo flag or a default_repo set in your clanker configuration.
github status
Show GitHub authentication status or the status of a specific GitHub Actions workflow. When called without arguments, it displays general authentication and repository status. When a workflow name is provided, it shows the status of that specific workflow.
clanker github status [workflow-name] [flags]Flags
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--repo | -r | string | From config | Repository in owner/repo format. Overrides the default repository from configuration |
Examples:
# Show general GitHub authentication status
clanker github status
# Show status of a specific workflow
clanker github status "CI Pipeline" -r myorg/myrepo
# Check workflow status on a specific repository
clanker github status deploy -r myorg/backendAuthentication
The github command uses a personal access token configured in your ~/.clanker.yaml file under github.token. The token can also be left empty for public repository access.
github:
token: "ghp_xxxxxxxxxxxxxxxxxxxx"
default_repo: myorg/myrepo
repos:
- owner: myorg
repo: myrepo
description: Main application repositoryRepository Resolution
When the --repo flag is not specified, clanker resolves the repository in the following order:
- The
default_repovalue from~/.clanker.yaml - The repository list configured under
github.repos - The current Git remote (if available)
See Also
- Configuration -- Setting up GitHub token and repositories
- ask -- Querying GitHub with natural language through the AI pipeline