Merge pull request #344 from brianpham93/azure-devops-ignore-tree

Ignore change item with `gitObjectType == 'tree'`
This commit is contained in:
mrT23
2023-10-01 10:39:03 +03:00
committed by GitHub

View File

@ -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']