Gitea · Arazzo Workflow

Gitea Create Branch And Await Availability

Version 1.0.0

Create a branch and poll until it is retrievable from the repository.

1 workflow 1 source API 1 provider
View Spec View on GitHub GitSource ControlDevOpsCI/CDCode HostingOpen-SourceSelf-HostedPackage RegistryIssue TrackingPull RequestsArazzoWorkflows

Provider

gitea

Workflows

create-branch-and-await
Create a branch and poll until it is retrievable.
Creates a branch from a base ref, then polls the branch lookup endpoint and retries until the branch is returned with a 200 response.
2 steps inputs: authToken, baseBranch, newBranch, owner, repo outputs: branchName, commitId
1
createBranch
Create a new branch from the supplied base ref.
2
awaitBranch
Look up the branch and retry until the repository returns it, confirming the branch is fully available.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Gitea Create Branch And Await Availability
  summary: Create a branch and poll until it is retrievable from the repository.
  description: >-
    Creates a branch and then confirms it has become available before any
    downstream automation depends on it. The workflow creates the branch and
    retries a branch lookup until the branch is returned, which is useful right
    after repository creation when branch indexing can lag. Each 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: repositoryApi
  url: ../openapi/gitea-repository-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-branch-and-await
  summary: Create a branch and poll until it is retrievable.
  description: >-
    Creates a branch from a base ref, then polls the branch lookup endpoint and
    retries until the branch is returned with a 200 response.
  inputs:
    type: object
    required:
    - authToken
    - owner
    - repo
    - newBranch
    - baseBranch
    properties:
      authToken:
        type: string
        description: Authorization header value, e.g. "token <personal-access-token>".
      owner:
        type: string
        description: Owner of the repository.
      repo:
        type: string
        description: Name of the repository.
      newBranch:
        type: string
        description: Name of the branch to create.
      baseBranch:
        type: string
        description: Existing branch or ref to create the new branch from.
  steps:
  - stepId: createBranch
    description: Create a new branch from the supplied base ref.
    operationId: repoCreateBranch
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authToken
    - name: owner
      in: path
      value: $inputs.owner
    - name: repo
      in: path
      value: $inputs.repo
    requestBody:
      contentType: application/json
      payload:
        new_branch_name: $inputs.newBranch
        old_ref_name: $inputs.baseBranch
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      branchName: $response.body#/name
  - stepId: awaitBranch
    description: >-
      Look up the branch and retry until the repository returns it, confirming
      the branch is fully available.
    operationId: repoGetBranch
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authToken
    - name: owner
      in: path
      value: $inputs.owner
    - name: repo
      in: path
      value: $inputs.repo
    - name: branch
      in: path
      value: $steps.createBranch.outputs.branchName
    successCriteria:
    - condition: $statusCode == 200
    onFailure:
    - name: retryBranchLookup
      type: retry
      retryAfter: 2
      retryLimit: 5
      stepId: awaitBranch
    outputs:
      commitId: $response.body#/commit/id
      protected: $response.body#/protected
  outputs:
    branchName: $steps.createBranch.outputs.branchName
    commitId: $steps.awaitBranch.outputs.commitId

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/gitea-create-branch-and-await-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.