Gitea · Arazzo Workflow

Gitea Create Label And Apply To Issue

Version 1.0.0

Create a repository label and apply it to an existing issue.

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

Provider

gitea

Workflows

label-create-and-apply
Create a label and apply it to an issue.
Creates a repository label, then applies it to the target issue by label id.
2 steps inputs: authToken, issueIndex, labelColor, labelDescription, labelName, owner, repo outputs: appliedLabels, labelId
1
createLabel
Create a new label in the repository.
2
applyLabel
Apply the newly created label to the target issue.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Gitea Create Label And Apply To Issue
  summary: Create a repository label and apply it to an existing issue.
  description: >-
    Sets up issue triage on Gitea. The workflow creates a new label in a
    repository and then applies that label to an existing issue by its id. 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: issueApi
  url: ../openapi/gitea-issue-api-openapi.yml
  type: openapi
workflows:
- workflowId: label-create-and-apply
  summary: Create a label and apply it to an issue.
  description: >-
    Creates a repository label, then applies it to the target issue by label id.
  inputs:
    type: object
    required:
    - authToken
    - owner
    - repo
    - issueIndex
    - labelName
    - labelColor
    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.
      issueIndex:
        type: integer
        description: Index (number) of the issue to label.
      labelName:
        type: string
        description: Name of the label to create.
      labelColor:
        type: string
        description: Hex color for the label, e.g. "#00aabb".
      labelDescription:
        type: string
        description: Optional description of the label's purpose.
  steps:
  - stepId: createLabel
    description: Create a new label in the repository.
    operationId: issueCreateLabel
    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:
        name: $inputs.labelName
        color: $inputs.labelColor
        description: $inputs.labelDescription
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      labelId: $response.body#/id
      labelUrl: $response.body#/url
  - stepId: applyLabel
    description: Apply the newly created label to the target issue.
    operationId: issueAddLabel
    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: $inputs.issueIndex
    requestBody:
      contentType: application/json
      payload:
        labels:
        - $steps.createLabel.outputs.labelId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      appliedLabels: $response.body
  outputs:
    labelId: $steps.createLabel.outputs.labelId
    appliedLabels: $steps.applyLabel.outputs.appliedLabels

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-label-create-and-apply-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.