Skip to content

Support left-file coordinates in repo_create_pull_request_thread #1571

Description

Summary

Extend repo_create_pull_request_thread to support left-file coordinates so automated PR reviewers can create inline comment threads on deleted files. Deleted content only exists on the left (base) side of a diff, so right-file coordinates alone are insufficient for anchoring comments on removed lines.

Parameters

Add the following optional parameters to repo_create_pull_request_thread (create action), mirroring the existing right-file coordinate support:

  • leftFileStartLine
  • leftFileStartOffset
  • leftFileEndLine
  • leftFileEndOffset

These should map to the Azure DevOps CommentThreadContext fields leftFileStart and leftFileEnd, which are already supported by:

Rules

  1. Adhere strictly to existing project standards and coding conventions.
  2. Ensure each tool/function exposes all API parameters (required and optional).
  3. Use the official Azure DevOps Node API to interact with the APIs.

Special treat

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions