mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
Ignore change item with gitObjectType == 'tree'
This commit is contained in:
parent
8cec3ffde3
commit
32a8b0e9bc
1 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,8 @@ class AzureDevopsProvider:
|
|||
changes_obj = self.azure_devops_client.get_changes(project=self.workspace_slug,
|
||||
repository_id=self.repo_slug, commit_id=c.commit_id)
|
||||
for i in changes_obj.changes:
|
||||
if(i['item']['gitObjectType'] == 'tree'):
|
||||
continue
|
||||
diffs.append(i['item']['path'])
|
||||
diff_types[i['item']['path']] = i['changeType']
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue