Skip to content

Commit

Permalink
Filter out issues_closed, attribution is wrong at the moment
Browse files Browse the repository at this point in the history
Github API doesn't allow to distinguish between closer and author,
see #12
  • Loading branch information
chillu committed Mar 16, 2014
1 parent 43988fe commit d7cf6c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/github_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit d7cf6c7

Please sign in to comment.