-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix defect with bot users when 'delete_previous_comments' is enabled
Indeed, in order to delete the correct comments, the golang code makes sure that comment's `Author.Login` is the same as current `Viewer.Login`. But with bot users, viewer's login is "githubApp[bot]" and author login is "githubApp". As a consequence, for the comparison to succeed, we need to remove any trailing "[bot]" suffix from both parties, and compare the resulting prefixes. This isue was originally submitted as telia-oss#245 and fixed later in monzo#4.
- Loading branch information
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters