Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

1.1 KB
Raw Blame
import type { Integration } from '../../types';
import { giteaListIssues } from './list-issues';
import { giteaCreateIssue } from './create-issue';
import { giteaUpdateIssue } from './update-issue';
import { giteaCommentIssue } from './comment-issue';

// Gitea and Forgejo, which serves the same API: the issues of a repository an agent can
// read and act on. One credential is one personal access token against one instance.
// Forgejo is in the label so that searching for it finds these tools.
export const gitea: Integration = {
  key: 'gitea',
  label: 'Gitea / Forgejo',
  credentialSchema: [
    {
      key: 'baseUrl',
      label: 'Instance URL',
      type: 'url',
      required: true,
      placeholder: 'https://git.example.com',
      help: 'Base URL of your Gitea or Forgejo instance.',
    },
    {
      key: 'token',
      label: 'Access token',
      type: 'secret',
      required: true,
      help: 'Personal access token with issue read and write scope (Settings, Applications). It reaches only the repositories the account can access.',
    },
  ],
  tools: [giteaListIssues, giteaCreateIssue, giteaUpdateIssue, giteaCommentIssue],
};