abeizn commented on code in PR #5143:
URL:
https://github.com/apache/incubator-devlake/pull/5143#discussion_r1189641291
##########
backend/python/plugins/azuredevops/azuredevops/streams/pull_requests.py:
##########
@@ -39,17 +39,22 @@ def convert(self, pr: GitPullRequest, ctx):
# Use the same status values as GitHub plugin
status = None
+ original_status = None
if pr.status == GitPullRequest.Status.Abandoned:
status = 'CLOSED'
+ original_status = 'abandoned'
elif pr.status == GitPullRequest.Status.Active:
status = 'OPEN'
+ original_status = 'active'
elif pr.status == GitPullRequest.Status.Completed:
status = 'MERGED'
+ original_status = 'completed'
yield code.PullRequest(
base_repo_id=base_repo_id,
head_repo_id=repo_id,
status=status,
+ original_status=original_status,
Review Comment:
> Use `original_status=pr.status.value` here and remove the added lines
above.
@CamilleTeruel updated
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]