Skip to content

Add ability to access line numbers and add line comments  #90

Open
@tresat

Description

@tresat

Is your feature request related to a problem? Please describe.
It would be good to be able to get the line numbers of each changed line, be able to process the changes, and have an action available to add comments associated with a specific line to a PR.

For instance, if a PR includes a line like TODO:, I'd like to have gitStream automatically add a comment on that line in the PR saying "TODO found, did you mean to address this now?"

Describe the solution you'd like
Add line number information to the FileDiff context variable. Provide a add-comment@v2 that allows for supplying a line number argument. Associate the comment with those line numbers.

Describe alternatives you've considered
Adding comments without line numbers. Adding the content of the diff to the comment. These are not as helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions