From d7cf6c722d878fd4cd7ca5a25b4f426af4bc7fad Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 16 Mar 2014 12:10:44 +1300 Subject: [PATCH] Filter out issues_closed, attribution is wrong at the moment Github API doesn't allow to distinguish between closer and author, see https://github.com/chillu/github-dashing/issues/12 --- lib/github_backend.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/github_backend.rb b/lib/github_backend.rb index 62bc0fd..203ce48 100644 --- a/lib/github_backend.rb +++ b/lib/github_backend.rb @@ -144,7 +144,9 @@ def issue_count_by_author(opts) state_desc = (state == 'open') ? 'opened' : 'closed' issues.each do |issue| events << GithubDashing::Event.new({ - type: "issues_#{state_desc}", + # TODO Attribute to closer, not to issue author + # type: "issues_#{state_desc}", + type: "issues_opened", key: issue.user.login, datetime: issue.created_at.to_datetime })