Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

ADO repos: Extend get_pull_request for ADO repos to include source and target branch names #262

@bermudas

Description

@bermudas

Description:
Currently, the get_pull_request method for Azure DevOps (ADO) repositories in alita_tools does not return details about the source and target branches of a pull request. This is important for PRODUCTION implementations of AI agent

Please enhance the method to include that information.
It appears that this data may already be available in the ADO API response. We just need to ensure the parsing logic in alita_tools captures and exposes it.
Maybe this inofrmation looks liket this:
Investigate if ADO API returns (maybe this something called sourceRefName and targetRefName - but please double check) - sourceRefName (e.g., refs/heads/npaulk/my_work), targetRefName (e.g., refs/heads/new_feature) OR you may need to fetch branch names from Links.

Including branch names improves automation workflows(e.g., branch-based CI/CD pipelines, code review, getting/pushing files to the right branch).

This information shouild already be available, but may be lost during parsing the pull request:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions