Skip to content

Leaving Comments Does Not Work #25

Closed
@harrisoncramer

Description

@harrisoncramer

Describe the bug
When you try to leave a comment on an unchanged/undeleted/unadded line, you'll get a nil pointer dereference:

http: panic serving 127.0.0.1:60819: runtime error: invalid memory address or nil pointer dereference

Leaving comments is definitely the hardest part of this plugin. Right now we bulk attempt to send comments to three different APIs since it's not clear whether you're leaving a comment on a deleted, changed, or added line. There's probably a better way of doing this that would also potentially address this issue.

Expected behavior
We should handle this more gracefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions