microsoft / microsoft/azure-devops-python-api

GitPullRequestChange does not inherit from GitChange/Change

Open
#489 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
684
Forks
218
Avg merge
8d 10h
Merged PRs (30d)
1

Description

It seems that the inheritance has gone wrong. I could not find out another way to access the changes of a git commit with changeType, item, ...

GitPullRequestChange (azure-devops/azure/devops/v7_1/git/models.py:1712) should inherit from
Change (azure-devops/azure/devops/v7_1/git/models.py:2849) (item)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in azure-devops/azure/devops/v7_1/git/models.py at GitPullRequestChange around line 1712 and compare it with Change around line 2849. Verify the inheritance and confirm that changeType, item, and the other Change fields are accessible for pull request changes; done means the model exposes those fields through the expected inheritance.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.