{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-python-api/issues/70","repository_url":"https://api.github.com/repos/Microsoft/vsts-python-api","labels_url":"https://api.github.com/repos/Microsoft/vsts-python-api/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-python-api/issues/70/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-python-api/issues/70/events","html_url":"https://github.com/Microsoft/vsts-python-api/issues/70","id":324087263,"node_id":"MDU6SXNzdWUzMjQwODcyNjM=","number":70,"title":"How to use GitClientBase.get_commit_diffs method (v4_0)","user":{"login":"WladdGorshenin","id":38522968,"node_id":"MDQ6VXNlcjM4NTIyOTY4","avatar_url":"https://avatars1.githubusercontent.com/u/38522968?v=4","gravatar_id":"","url":"https://api.github.com/users/WladdGorshenin","html_url":"https://github.com/WladdGorshenin","followers_url":"https://api.github.com/users/WladdGorshenin/followers","following_url":"https://api.github.com/users/WladdGorshenin/following{/other_user}","gists_url":"https://api.github.com/users/WladdGorshenin/gists{/gist_id}","starred_url":"https://api.github.com/users/WladdGorshenin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WladdGorshenin/subscriptions","organizations_url":"https://api.github.com/users/WladdGorshenin/orgs","repos_url":"https://api.github.com/users/WladdGorshenin/repos","events_url":"https://api.github.com/users/WladdGorshenin/events{/privacy}","received_events_url":"https://api.github.com/users/WladdGorshenin/received_events","type":"User","site_admin":false},"labels":[{"id":726063745,"node_id":"MDU6TGFiZWw3MjYwNjM3NDU=","url":"https://api.github.com/repos/Microsoft/vsts-python-api/labels/question","name":"question","color":"edcd9a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-17T16:00:36Z","updated_at":"2018-05-31T13:44:31Z","closed_at":null,"author_association":"NONE","body":"I'm trying to use GitClientBase.get_commit_diffs method (v4_0) as follows:\r\n```\r\ndiifs=git_client.get_commit_diffs(\r\n    repository_id=repo_id, \r\n    project=proj_id,\r\n    diff_common_commit=None,\r\n    top=None, \r\n    skip=None, \r\n    base_version_descriptor=GitBaseVersionDescriptor(version=src_commit_id), \r\n    target_version_descriptor=GitTargetVersionDescriptor(version=dst_commit_id)\r\n)\r\n```\r\nI specify repository_id, project_id and IDs for two commits from the repository. But the method returns something different which looks like a recent commit in the repo.\r\n\r\nWhat I do wrong?"},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-python-api/issues/comments/393534656","html_url":"https://github.com/Microsoft/vsts-python-api/issues/70#issuecomment-393534656","issue_url":"https://api.github.com/repos/Microsoft/vsts-python-api/issues/70","id":393534656,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzUzNDY1Ng==","user":{"login":"jianges","id":33556658,"node_id":"MDQ6VXNlcjMzNTU2NjU4","avatar_url":"https://avatars1.githubusercontent.com/u/33556658?v=4","gravatar_id":"","url":"https://api.github.com/users/jianges","html_url":"https://github.com/jianges","followers_url":"https://api.github.com/users/jianges/followers","following_url":"https://api.github.com/users/jianges/following{/other_user}","gists_url":"https://api.github.com/users/jianges/gists{/gist_id}","starred_url":"https://api.github.com/users/jianges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jianges/subscriptions","organizations_url":"https://api.github.com/users/jianges/orgs","repos_url":"https://api.github.com/users/jianges/repos","events_url":"https://api.github.com/users/jianges/events{/privacy}","received_events_url":"https://api.github.com/users/jianges/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T13:44:31Z","updated_at":"2018-05-31T13:44:31Z","author_association":"NONE","body":"You won't have permission to access my personal vsts account. But you can try it on your own vsts account by following the same url format and it should work. \r\nBTW, commit diff rest api should fail with meaningful error message while neither baseVersion and targetVersion query parameters are provided instead of returning the \"empty\" diff from your default branch's tip commit. We're working on a fix on that as well.\r\n "}}
{"actor":{"display_login":"jianges"}}