Skip to content

GetChanges does not return deleted files #445

Closed
@carlosms

Description

@carlosms

Right now GetChanges does not return deleted files.
This issue is to decide if we want to change this or keep it.

It makes sense to filter out deleted files since analyzers are supposed to add comments to new changes, and maybe this edge case is not considered by the current analyzers.
On the other hand we don't remove deleted and context lines from diffs, so maybe a deleted file should also not dissapear from the response. And there might be a use case for an analyzer that is interested in knowing if any file was deleted in a PR.

Currently, the filtering is happening in the regexp scanner, here. If we want to keep this behaviour I think we should make it more explicit and filter in a more obvious place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions