lib/octospy/parser/user.rb in octospy-0.0.5 vs lib/octospy/parser/user.rb in octospy-0.0.6
- old
+ new
@@ -1,13 +1,20 @@
module Octospy
class Parser
module User
def parse_watch_event
+ # This is not watch event, this is star event
+ # {
+ # status: "#{@event.payload.action} to watch",
+ # title: nil,
+ # link: "#{Octokit.web_endpoint}#{@event.repo.name}/watchers",
+ # repository: @event.repo.name
+ # }
{
- status: "#{@event.payload.action} repository",
- title: @event.repo.name,
- link: "#{Octokit.web_endpoint}#{@event.repo.name}",
- repository: nil
+ status: 'starred',
+ title: nil,
+ link: "#{Octokit.web_endpoint}#{@event.repo.name}/stargazers",
+ repository: @event.repo.name
}
end
def parse_follow_event
user = @event.payload.target