use filter() to filter issues from pull request and events of specific types
remove pull requests from issue events
fix format date function
prepare issues data
add closed and reopened events to issues