Skip to content

Commit

Permalink
#151 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 14, 2024
1 parent 942690b commit 894b61d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion judges/add-user-names/add-user-names.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@
require 'fbe/conclude'

Fbe.conclude do
on '(and (exists who) (not (exists who_name)))'
on '(and (eq where "github") (exists who) (not (exists who_name)) (not (exists who_noname)))'
consider do |f|
n = Fbe.octo.user_name_by_id(f.who)
f.who_name = n
$loog.debug("User ##{f.who} is actually @#{f.who_name}")
rescue Octokit::NotFound => e
f.who_noname = 'not found'
$loog.warn("THe user ##{f.who} is absent in GitHub: #{e.message}")
end
end
1 change: 1 addition & 0 deletions judges/add-user-names/fake-names.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ options:
input:
-
_id: 11
where: github
what: bug-was-resolved
who: 4444
issue: 42
Expand Down

0 comments on commit 894b61d

Please sign in to comment.