Skip to content

Commit

Permalink
Merge pull request #71 from Suban05/211_judges_action
Browse files Browse the repository at this point in the history
define the fake method `resolved_conversations` in `Fbe::Graph::Fake`
  • Loading branch information
yegor256 authored Aug 16, 2024
2 parents da9df29 + 83010df commit 1b529fc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/fbe/github_graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,30 @@ class Fake
def query(_query)
{}
end

def resolved_conversations(_owner, _name, _number)
[
{
'id' => 'PRRT_kwDOK2_4A85BHZAR',
'isResolved' => true,
'comments' => {
'nodes' => [
{
'id' => 'PRRC_kwDOK2_4A85l3obO',
'body' => 'first message',
'author' => { '__typename' => 'User', 'login' => 'reviewer' },
'createdAt' => '2024-08-08T09:41:46Z'
},
{
'id' => 'PRRC_kwDOK2_4A85l3yTp',
'body' => 'second message',
'author' => { '__typename' => 'User', 'login' => 'programmer' },
'createdAt' => '2024-08-08T10:01:55Z'
}
]
}
}
]
end
end
end

0 comments on commit 1b529fc

Please sign in to comment.