Skip to content

Commit

Permalink
Merge pull request #93 from Yegorov/191
Browse files Browse the repository at this point in the history
judges-action#191: add review_comments to Fbe::FakeOctokit
  • Loading branch information
yegor256 authored Sep 6, 2024
2 parents 6710f82 + 363c2e4 commit 29d72c9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions lib/fbe/octo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,35 @@ def pull_request_reviews(_repo, _number)
]
end

def review_comments(_repo, _number)
[
{
pull_request_review_id: 22_687_249,
id: 17_361_949,
body: 'Some comment 1',
user: { login: 'yegor256', id: 526_301, type: 'User' },
created_at: Time.parse('2024-09-05 15:31:06 UTC'),
updated_at: Time.parse('2024-09-05 15:33:04 UTC')
},
{
pull_request_review_id: 22_687_503,
id: 17_361_950,
body: 'Some comment 2',
user: { login: 'yegor256', id: 526_301, type: 'User' },
created_at: Time.parse('2024-09-06 14:20:00 UTC'),
updated_at: Time.parse('2024-09-06 14:20:50 UTC')
},
{
pull_request_review_id: 22_687_255,
id: 17_361_970,
body: 'Some comment 3',
user: { login: 'yegor256', id: 526_301, type: 'User' },
created_at: Time.parse('2024-09-06 20:45:30 UTC'),
updated_at: Time.parse('2024-09-06 20:45:30 UTC')
}
]
end

def add_comment(_repo, _issue, _text)
{
id: 42
Expand Down

0 comments on commit 29d72c9

Please sign in to comment.