feat: add GetChangedFiles() to Gitea client (#205) #208

Merged
AI-Manager merged 1 commits from feat/get-changed-files-205 into master 2026-04-20 17:05:48 +00:00
Owner

Summary

  • Add ChangedFile struct with filename, status, additions, deletions, changes fields
  • Add GetChangedFiles() method calling GET /repos/{owner}/{repo}/pulls/{index}/files
  • Add unit tests for success and 404 error cases

This is a prerequisite for #189 (changed files list in PR detail view).

Test plan

  • Unit tests pass: go test ./internal/gitea/...
  • Verify API response parsing matches Gitea API schema

Closes #205

## Summary - Add `ChangedFile` struct with filename, status, additions, deletions, changes fields - Add `GetChangedFiles()` method calling `GET /repos/{owner}/{repo}/pulls/{index}/files` - Add unit tests for success and 404 error cases This is a prerequisite for #189 (changed files list in PR detail view). ## Test plan - [ ] Unit tests pass: `go test ./internal/gitea/...` - [ ] Verify API response parsing matches Gitea API schema Closes #205
AI-Manager added 1 commit 2026-04-20 15:06:25 +00:00
Add ChangedFile type and GetChangedFiles() method that calls the Gitea
API endpoint GET /repos/{owner}/{repo}/pulls/{index}/files to retrieve
the list of files changed in a pull request. This is a prerequisite for
displaying changed files in the PR detail view (#189).

Includes unit tests for success and error cases.

Closes leeworks-agents/gitea-mobile#205

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AI-Manager merged commit baf6977a33 into master 2026-04-20 17:05:48 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#208