diff --git a/backend/python/plugins/azuredevops/azuredevops/streams/pull_requests.py b/backend/python/plugins/azuredevops/azuredevops/streams/pull_requests.py index b7ab834be2a..2d9485e145e 100644 --- a/backend/python/plugins/azuredevops/azuredevops/streams/pull_requests.py +++ b/backend/python/plugins/azuredevops/azuredevops/streams/pull_requests.py @@ -50,6 +50,7 @@ def convert(self, pr: GitPullRequest, ctx): base_repo_id=base_repo_id, head_repo_id=repo_id, status=status, + original_status=pr.status.value, title=pr.title, description=pr.description, url=pr.url, diff --git a/backend/python/plugins/azuredevops/tests/streams_test.py b/backend/python/plugins/azuredevops/tests/streams_test.py index f7624afbe5f..4f9f1e1997d 100644 --- a/backend/python/plugins/azuredevops/tests/streams_test.py +++ b/backend/python/plugins/azuredevops/tests/streams_test.py @@ -276,6 +276,7 @@ def test_pull_requests_stream(context): base_repo_id='azuredevops:GitRepository:1:johndoe/test-repo', head_repo_id='azuredevops:GitRepository:1:johndoe/test-repo', status='OPEN', + original_status='active', title='ticket-2 PR', description='Updated main.java by ticket-2', url='https://dev.azure.com/johndoe/7a3fd40e-2aed-4fac-bac9-511bf1a70206/_apis/git/repositories/0d50ba13-f9ad-49b0-9b21-d29eda50ca33/pullRequests/1', diff --git a/backend/python/pydevlake/pydevlake/domain_layer/code.py b/backend/python/pydevlake/pydevlake/domain_layer/code.py index d8da795a496..629dd991e27 100644 --- a/backend/python/pydevlake/pydevlake/domain_layer/code.py +++ b/backend/python/pydevlake/pydevlake/domain_layer/code.py @@ -27,6 +27,7 @@ class PullRequest(DomainModel, table=True): base_repo_id: str head_repo_id: str status: str + original_status: str title: str description: str url: str