Gitea · Arazzo Workflow

Gitea Open And Triage Pull Request

Version 1.0.0

Open a pull request and then triage it with assignees and labels.

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

Provider

gitea

Workflows

open-and-triage-pull-request
Open a pull request and triage it with assignees and labels.
Opens a pull request, then edits it to attach assignees and label ids for triage.
2 steps inputs: assignees, authToken, baseBranch, headBranch, labelIds, owner, prBody, prTitle, repo outputs: prNumber, prState, prUrl
1
openPullRequest
Open a pull request from the head branch into the base branch.
2
triagePullRequest
Edit the pull request to attach assignees and labels.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Gitea Open And Triage Pull Request
  summary: Open a pull request and then triage it with assignees and labels.
  description: >-
    Opens a pull request and routes it for review on Gitea. The workflow opens
    the pull request from a head branch into a base branch and then edits it to
    set assignees and labels so the right people are notified. 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: open-and-triage-pull-request
  summary: Open a pull request and triage it with assignees and labels.
  description: >-
    Opens a pull request, then edits it to attach assignees and label ids for
    triage.
  inputs:
    type: object
    required:
    - authToken
    - owner
    - repo
    - headBranch
    - baseBranch
    - prTitle
    - assignees
    - labelIds
    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.
      headBranch:
        type: string
        description: Head branch the changes come from.
      baseBranch:
        type: string
        description: Base branch the pull request targets.
      prTitle:
        type: string
        description: Title of the pull request.
      prBody:
        type: string
        description: Description body for the pull request.
      assignees:
        type: array
        description: Usernames to assign to the pull request.
        items:
          type: string
      labelIds:
        type: array
        description: Label ids to attach to the pull request.
        items:
          type: integer
  steps:
  - stepId: openPullRequest
    description: Open a pull request from the head branch into the base branch.
    operationId: repoCreatePullRequest
    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:
        title: $inputs.prTitle
        body: $inputs.prBody
        head: $inputs.headBranch
        base: $inputs.baseBranch
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      prNumber: $response.body#/number
      prUrl: $response.body#/html_url
  - stepId: triagePullRequest
    description: Edit the pull request to attach assignees and labels.
    operationId: repoEditPullRequest
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authToken
    - name: owner
      in: path
      value: $inputs.owner
    - name: repo
      in: path
      value: $inputs.repo
    - name: index
      in: path
      value: $steps.openPullRequest.outputs.prNumber
    requestBody:
      contentType: application/json
      payload:
        assignees: $inputs.assignees
        labels: $inputs.labelIds
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      prState: $response.body#/state
  outputs:
    prNumber: $steps.openPullRequest.outputs.prNumber
    prUrl: $steps.openPullRequest.outputs.prUrl
    prState: $steps.triagePullRequest.outputs.prState

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-open-and-triage-pull-request-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.