kdeps-components-github_post
v1.0.0kdeps kdeps-component: github_post
set components / shelf workflow
PurposeWrite to the GitHub REST API through the kdeps API
LLM context: ~85 tokens when loaded (prompt or tool definition)
Where it runs
Part of the components set, used in workflow and agent mode. Ready-made workflow steps (sql, browser, email, git, ocr...) a resource calls by name; in agent mode they are also tools.
- a resource names a component (or the model calls it as a tool)
- the component's own resources runcomponents/github_post
- its output goes back to the caller
Loaded by: kdeps (agent loop), kdeps validate, kdeps run, kdeps bundle package, kdeps env, kdeps export k8s, kdeps test, kdeps bundle build
In the code: kdeps (agent loop)yaml.(*Parser).ParseWorkflowyaml.(*Parser).loadAssetComponents
Install
A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.
Also installs what it requires, when missing or older: schemas/v1, tools/github_post.
Pin a version with kdeps install components/github_post@<version>.
Contents
component.yaml
apiVersion: kdeps.io/v1
kind: Component
metadata:
name: github_post
description: Write to the GitHub REST API through the kdeps API
version: "1.0.0"
interface:
inputs:
- name: path
type: string
required: true
description: The API path after https://api.github.com/ (repos/OWNER/REPO/issues)
- name: body
type: object
required: true
description: 'The JSON request body, for example {"title": "...", "body": "..."} for a new issue'
# The GitHub reply, parsed from JSON. No GITHUB_TOKEN, GH_TOKEN or vault secret github_token is an error.
output: "{{ fromJSON(output('call').body) }}"
resources:
- actionId: call
name: GitHub POST
httpClient:
method: POST
# In-process host. The HTTP executor calls the handler without dialing.
url: http://kdeps.api/apis/tools.kdeps.io/v1/tools/github_post/call
headers:
Content-Type: application/json
failOnError: true
timeout: 60s
data:
path: "{{ get('github_post.path') }}"
body: "{{ get('github_post.body') }}"
requires:
schemas/v1: ""
tools/github_post: ""
version: 1.0.0
requires:
schemas/v1: ""
tools/github_post: ""
files:
component.yaml: |
apiVersion: kdeps.io/v1
kind: Component
metadata:
name: github_post
description: Write to the GitHub REST API through the kdeps API
version: "1.0.0"
interface:
inputs:
- name: path
type: string
required: true
description: The API path after https://api.github.com/ (repos/OWNER/REPO/issues)
- name: body
type: object
required: true
description: 'The JSON request body, for example {"title": "...", "body": "..."} for a new issue'
# The GitHub reply, parsed from JSON. No GITHUB_TOKEN, GH_TOKEN or vault secret github_token is an error.
output: "{{ fromJSON(output('call').body) }}"
resources:
- actionId: call
name: GitHub POST
httpClient:
method: POST
# In-process host. The HTTP executor calls the handler without dialing.
url: http://kdeps.api/apis/tools.kdeps.io/v1/tools/github_post/call
headers:
Content-Type: application/json
failOnError: true
timeout: 60s
data:
path: "{{ get('github_post.path') }}"
body: "{{ get('github_post.body') }}"
Versions
| Version | Published | Status | Source |
|---|---|---|---|
| 1.0.0 | 11/26/2026 | active | GitHub v1.0.0 |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 11/26/2026