GitHub · Capability
GitHub Repos API — Re-run
GitHub Repos API — Re-run. 3 operations. Lead operation: Re-run Job From Workflow Run. Self-contained Naftiko capability covering one Github business surface.
What You Can Do
POST
Rerunjobfromworkflowrun
— Re-run Job From Workflow Run
/v1/repos/{owner}/{repo}/actions/jobs/{job-id}/rerun
POST
Rerunworkflow
— Re-run Workflow
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/rerun
POST
Rerunfailedjobsfromworkflowrun
— Re-run Failed Jobs From Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/rerun-failed-jobs
MCP Tools
re-run-job-workflow-run
Re-run Job From Workflow Run
re-run-workflow
Re-run Workflow
re-run-failed-jobs-workflow
Re-run Failed Jobs From Workflow Run
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: GitHub Repos API — Re-run
description: 'GitHub Repos API — Re-run. 3 operations. Lead operation: Re-run Job From Workflow Run. Self-contained Naftiko
capability covering one Github business surface.'
tags:
- Github
- Re-run
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
GITHUB_API_KEY: GITHUB_API_KEY
capability:
consumes:
- type: http
namespace: temp-re-run
baseUri: ''
description: GitHub Repos API — Re-run business capability. Self-contained, no shared references.
resources:
- name: repos-owner-repo-actions-jobs-job_id-rerun
path: /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun
operations:
- name: rerunjobfromworkflowrun
method: POST
description: Re-run Job From Workflow Run
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: repos-owner-repo-actions-runs-run_id-rerun
path: /repos/{owner}/{repo}/actions/runs/{run_id}/rerun
operations:
- name: rerunworkflow
method: POST
description: Re-run Workflow
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: repos-owner-repo-actions-runs-run_id-rerun-failed-jobs
path: /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs
operations:
- name: rerunfailedjobsfromworkflowrun
method: POST
description: Re-run Failed Jobs From Workflow Run
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Authorization
in: header
type: string
- name: X-GitHub-Api-Version
in: header
type: string
- name: Accept
in: header
type: string
- name: body
in: body
type: object
description: Request body (JSON).
required: false
authentication:
type: bearer
token: '{{env.GITHUB_API_KEY}}'
exposes:
- type: rest
namespace: temp-re-run-rest
port: 8080
description: REST adapter for GitHub Repos API — Re-run. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/repos/{owner}/{repo}/actions/jobs/{job-id}/rerun
name: repos-owner-repo-actions-jobs-job-id-rerun
description: REST surface for repos-owner-repo-actions-jobs-job_id-rerun.
operations:
- method: POST
name: rerunjobfromworkflowrun
description: Re-run Job From Workflow Run
call: temp-re-run.rerunjobfromworkflowrun
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/rerun
name: repos-owner-repo-actions-runs-run-id-rerun
description: REST surface for repos-owner-repo-actions-runs-run_id-rerun.
operations:
- method: POST
name: rerunworkflow
description: Re-run Workflow
call: temp-re-run.rerunworkflow
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/rerun-failed-jobs
name: repos-owner-repo-actions-runs-run-id-rerun-failed-jobs
description: REST surface for repos-owner-repo-actions-runs-run_id-rerun-failed-jobs.
operations:
- method: POST
name: rerunfailedjobsfromworkflowrun
description: Re-run Failed Jobs From Workflow Run
call: temp-re-run.rerunfailedjobsfromworkflowrun
with:
Authorization: rest.Authorization
X-GitHub-Api-Version: rest.X-GitHub-Api-Version
Accept: rest.Accept
body: rest.body
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: temp-re-run-mcp
port: 9090
transport: http
description: MCP adapter for GitHub Repos API — Re-run. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: re-run-job-workflow-run
description: Re-run Job From Workflow Run
hints:
readOnly: false
destructive: false
idempotent: false
call: temp-re-run.rerunjobfromworkflowrun
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: re-run-workflow
description: Re-run Workflow
hints:
readOnly: false
destructive: false
idempotent: false
call: temp-re-run.rerunworkflow
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: re-run-failed-jobs-workflow
description: Re-run Failed Jobs From Workflow Run
hints:
readOnly: false
destructive: false
idempotent: false
call: temp-re-run.rerunfailedjobsfromworkflowrun
with:
Authorization: tools.Authorization
X-GitHub-Api-Version: tools.X-GitHub-Api-Version
Accept: tools.Accept
body: tools.body
outputParameters:
- type: object
mapping: $.