feat: add GetChangedFiles() to Gitea client (#205) #208
Reference in New Issue
Block a user
Delete Branch "feat/get-changed-files-205"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ChangedFilestruct with filename, status, additions, deletions, changes fieldsGetChangedFiles()method callingGET /repos/{owner}/{repo}/pulls/{index}/filesThis is a prerequisite for #189 (changed files list in PR detail view).
Test plan
go test ./internal/gitea/...Closes #205
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>