feat(project): add project management tools

Add read and write tools for Gitea projects, including project and column CRUD and issue-to-project-column management.

Bump gitea.dev/sdk to include ProjectsService.

Assisted-by: Codet:codet-internal
This commit is contained in:
Lunny Xiao
2026-08-23 23:09:25 -07:00
parent 815a0e26aa
commit 380e548f36
11 changed files with 1238 additions and 4 deletions
+4
View File
@@ -8,6 +8,7 @@ import (
func TestSlimIssue(t *testing.T) {
i := &gitea_sdk.Issue{
ID: 99,
Index: 42,
Title: "Bug report",
Body: "Something is broken",
@@ -24,6 +25,9 @@ func TestSlimIssue(t *testing.T) {
m := slimIssue(i)
if m["id"] != int64(99) {
t.Errorf("expected id 99, got %v", m["id"])
}
if m["number"] != int64(42) {
t.Errorf("expected number 42, got %v", m["number"])
}