1) The Issue object (instead of IssueComment object) was passed to log_action method.
2) The PullRequest object ( instead of PullRequestComment) object was passed to log_action method.
3) The user_id attribute ( instead of close_by_id attribute) of PullRequest object was passed in log_action method.
4) Some spelling mistakes i found while reading the code.
Changes made in code for the issue:-
1) The Issue object (instead of IssueComment object) was passed to log_action method.
2) The PullRequest object ( instead of PullRequestComment) object was passed to log_action method.
3) The user_id attribute ( instead of close_by_id attribute) of PullRequest object was passed in log_action method.
4) Some spelling mistakes i found while reading the code.