feat: add tags extraction from work item fields in Azure DevOps provider

Signed-off-by: abishlal <abishlalns03@gmail.com>
This commit is contained in:
abishlal
2025-06-25 20:57:56 +05:30
parent 7759d1d3fc
commit 299a2c89d1
2 changed files with 2 additions and 0 deletions

View File

@ -675,6 +675,7 @@ class AzureDevopsProvider(GitProvider):
"acceptance_criteria": item.fields.get( "acceptance_criteria": item.fields.get(
"Microsoft.VSTS.Common.AcceptanceCriteria", "" "Microsoft.VSTS.Common.AcceptanceCriteria", ""
), ),
"tags": item.fields.get("System.Tags", "").split("; ") if item.fields.get("System.Tags") else [],
} }
) )
return work_items return work_items

View File

@ -148,6 +148,7 @@ async def extract_tickets(git_provider):
"title": ticket.get("title"), "title": ticket.get("title"),
"body": ticket_body_str, "body": ticket_body_str,
"requirements": ticket.get("acceptance_criteria", ""), "requirements": ticket.get("acceptance_criteria", ""),
"labels": ", ".join(ticket.get("labels", [])),
} }
) )
except Exception as e: except Exception as e: