mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-11 18:35:18 +00:00
Add forgejo statuses check in gitea get_diff_files method
This commit is contained in:
parent
865798ef3f
commit
37781c59e7
1 changed files with 2 additions and 2 deletions
|
|
@ -471,11 +471,11 @@ class GiteaProvider(GitProvider):
|
|||
|
||||
if status == 'added':
|
||||
edit_type = EDIT_TYPE.ADDED
|
||||
elif status == 'removed':
|
||||
elif status == 'removed' or status == 'deleted':
|
||||
edit_type = EDIT_TYPE.DELETED
|
||||
elif status == 'renamed':
|
||||
edit_type = EDIT_TYPE.RENAMED
|
||||
elif status == 'modified':
|
||||
elif status == 'modified' or status == 'changed':
|
||||
edit_type = EDIT_TYPE.MODIFIED
|
||||
else:
|
||||
self.logger.error(f"Unknown edit type: {status}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue