GitHub · Arazzo Workflow

GitHub Fork a Gist and Comment on the Fork

Version 1.0.0

Fork an existing gist into your account and leave a comment on the fork.

1 workflow 1 source API 1 provider
View Spec View on GitHub CodePipelinesPlatformSoftware DevelopmentSource ControlT1ArazzoWorkflows

Provider

github

Workflows

fork-gist-and-comment
Fork a gist then comment on the resulting fork.
Forks a gist and chains the returned fork id into a call that adds a comment to the fork.
2 steps inputs: comment, gistId, githubToken outputs: commentId, forkGistId, forkUrl
1
forkGist
forkgist
Fork the source gist into the authenticated account.
2
commentOnFork
creategistComment
Add a comment to the forked gist using the fork id returned by the fork step.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: GitHub Fork a Gist and Comment on the Fork
  summary: Fork an existing gist into your account and leave a comment on the fork.
  description: >-
    A gist collaboration pattern. The workflow forks an existing gist into the
    authenticated account and then posts a comment on the newly created fork
    using the fork's gist id returned by the fork step. Every step spells out its
    request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: githubGistsApi
  url: ../openapi/_original/github-gists-openapi.yml
  type: openapi
workflows:
- workflowId: fork-gist-and-comment
  summary: Fork a gist then comment on the resulting fork.
  description: >-
    Forks a gist and chains the returned fork id into a call that adds a comment
    to the fork.
  inputs:
    type: object
    required:
    - githubToken
    - gistId
    - comment
    properties:
      githubToken:
        type: string
        description: A GitHub token with gist scope, passed as a Bearer credential.
      gistId:
        type: string
        description: The identifier of the gist to fork.
      comment:
        type: string
        description: The comment body to add to the forked gist.
  steps:
  - stepId: forkGist
    description: Fork the source gist into the authenticated account.
    operationId: forkgist
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.githubToken
    - name: gist_id
      in: path
      value: $inputs.gistId
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      forkGistId: $response.body#/id
      forkUrl: $response.body#/html_url
  - stepId: commentOnFork
    description: >-
      Add a comment to the forked gist using the fork id returned by the fork
      step.
    operationId: creategistComment
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.githubToken
    - name: gist_id
      in: path
      value: $steps.forkGist.outputs.forkGistId
    requestBody:
      contentType: application/json
      payload:
        body: $inputs.comment
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      commentId: $response.body#/id
      commentUrl: $response.body#/url
  outputs:
    forkGistId: $steps.forkGist.outputs.forkGistId
    forkUrl: $steps.forkGist.outputs.forkUrl
    commentId: $steps.commentOnFork.outputs.commentId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/github-fork-gist-and-comment-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.