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.

fix(agent-tools): a Forgejo search finds the Gitea tools (#812)

Pasqual Troncone0305704a4458
diff --git a/README.md b/README.md
index 5ce59bbc..760c7bc1 100644
--- a/README.md
+++ b/README.md
@@ -88,7 +88,7 @@ release.
- A run starts on an @mention in a comment on an issue or a document, on an assignment, or
on a schedule
- Tools for the services outside the tracker: Notion, Telegram, Threads, Instagram, Jina,
- Firecrawl, Keenable, Gitea, and GitHub
+ Firecrawl, Keenable, Gitea, Forgejo, and GitHub
- Built-in chat with each agent, with its own conversation history. Chat can be turned off
for an agent that only works on mentions, assignments, and schedules
- Chat with an external agent too. The runner answers from your machine, streams the reply
diff --git a/apps/api/src/modules/agents/integrations/__tests__/integration/integrations.test.ts b/apps/api/src/modules/agents/integrations/__tests__/integration/integrations.test.ts
index c4720707..5c6f3c0b 100644
--- a/apps/api/src/modules/agents/integrations/__tests__/integration/integrations.test.ts
+++ b/apps/api/src/modules/agents/integrations/__tests__/integration/integrations.test.ts
@@ -44,6 +44,15 @@ describe('integrations', () => {
);
});
+ // The tool and integration pickers search the label, so a search for Forgejo finds the
+ // Gitea tools that serve it.
+ it('names Forgejo in the Gitea integration label', async () => {
+ const { asOwner, teamId } = await setup();
+ const res = await integrations(asOwner, teamId).catalog.get();
+ const gitea = res.data?.find((integration) => integration.key === 'gitea');
+ expect(gitea?.label.toLowerCase()).toContain('forgejo');
+ });
+
it('lists a tool integration an extension adds after start', async () => {
const { asOwner, teamId } = await setup();
setExtraIntegrations([{ key: 'extra', label: 'Extra', credentialSchema: [], tools: [] }]);
diff --git a/packages/agent-tools/src/tools/gitea/index.ts b/packages/agent-tools/src/tools/gitea/index.ts
index f873380c..e3801248 100644
--- a/packages/agent-tools/src/tools/gitea/index.ts
+++ b/packages/agent-tools/src/tools/gitea/index.ts
@@ -4,11 +4,12 @@ import { giteaCreateIssue } from './create-issue';
import { giteaUpdateIssue } from './update-issue';
import { giteaCommentIssue } from './comment-issue';
-// Gitea: the issues of a repository an agent can read and act on. One credential is
-// one personal access token against one instance; a Forgejo instance works the same.
+// 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',
+ label: 'Gitea / Forgejo',
credentialSchema: [
{
key: 'baseUrl',
@@ -16,14 +17,14 @@ export const gitea: Integration = {
type: 'url',
required: true,
placeholder: 'https://git.example.com',
- help: 'Base URL of your Gitea instance. A Forgejo instance works the same.',
+ help: 'Base URL of your Gitea or Forgejo instance.',
},
{
key: 'token',
label: 'Access token',
type: 'secret',
required: true,
- help: 'Personal access token with repository read and write scope (Settings, Applications). It reaches only the repositories the account can access.',
+ 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],