Skip to content

Commit

Permalink
#12 paging
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 25, 2024
1 parent e02224d commit 5059590
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions judges/catch/catch_accepted_bug/catch-simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ input:
issue: 42
repository: 77
label: bug
who: 33
when: 2024-05-20T23:54:24Z
-
id: 2
what: issue-opened
Expand Down
2 changes: 2 additions & 0 deletions judges/catch/catch_accepted_bug/no-catch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ input:
issue: 42
repository: 555
label: bug
who: 777
when: 2024-05-20T23:54:24Z
-
id: 2
what: issue-opened
Expand Down
9 changes: 5 additions & 4 deletions judges/scan/scan_github_events/scan_github_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ def put_new_event(fbt, json)
n.event_id = json[:id]
n.repository = json[:repo][:id]
n.who = json[:actor][:id] if json[:actor]
n.details =
"A new event ##{json[:id]} happened in GitHub #{json[:repo][:name]} repository " \
"(id: #{json[:repo][:id]}) of type '#{json[:type]}', " \
"with the creation time #{json[:created_at].iso8601}."

case json[:type]
when 'PushEvent'
Expand Down Expand Up @@ -69,6 +65,11 @@ def put_new_event(fbt, json)
n.tag = json[:payload][:ref]
end
end

n.details =
"A new event ##{json[:id]} happened in GitHub #{json[:repo][:name]} repository " \
"(id: #{json[:repo][:id]}) of type '#{json[:type]}', " \
"with the creation time #{json[:created_at].iso8601}."
end

# Taking the largest ID of GitHub event that was seen so far
Expand Down

0 comments on commit 5059590

Please sign in to comment.