Gitea

Community managed lightweight code hosting solution written in Go

Go to site

Gitea API Integrations

Build and run workflows using the Gitea API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

With the Gitea API, you can:

  • Create and manage repositories
  • Create and manage issues
  • Create and manage pull requests
  • Create and manage comments
  • Explore repositories and users
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    gitea: {
      type: "app",
      app: "gitea",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.gitea.$auth.gitea_url}/api/v1/user`,
      headers: {
        Authorization: `Bearer ${this.gitea.$auth.apiKey}`,
      },
    })
  },
})

Authentication

Gitea uses API keys for authentication. When you connect your Gitea account, Pipedream securely stores the keys so you can easily authenticate to Gitea APIs in both code and no-code steps.

An API key token is created via the Gitea installation’s web interface: Settings | Applications | Generate New Token.