class Fbe::FakeOctokit
def workflow_run_job(_repo, job)
def workflow_run_job(_repo, job)
[
{
id: 28_907_016_501,
run_id: 10_438_531_072,
name: 'make',
started_at: '2024-08-18T08:04:44Z',
completed_at: '2024-08-18T08:20:17Z'
},
{
id: 28_906_596_603,
run_id: 10_438_531_073,
name: 'copyrights',
started_at: '2024-08-18T08:04:44Z',
completed_at: '2024-08-18T08:20:17Z'
},
{
id: 28_906_596_550,
run_id: 10_438_531_074,
name: 'markdown-lint',
started_at: '2024-08-18T08:04:44Z',
completed_at: '2024-08-18T08:20:17Z'
},
{
id: 28_906_596_483,
run_id: 10_438_531_075,
name: 'pdd',
started_at: '2024-08-18T08:04:44Z',
completed_at: '2024-08-18T08:20:17Z'
},
{
id: 28_906_596_433,
run_id: 10_438_531_076,
name: 'rake',
started_at: '2024-08-18T08:04:44Z',
completed_at: '2024-08-18T08:20:17Z'
},
{
id: 28_906_596_405,
run_id: 10_438_531_077,
name: 'shellcheck',
started_at: '2024-08-18T08:04:44Z',
completed_at: '2024-08-18T08:20:17Z'
},
{
id: 28_906_596_379,
run_id: 10_438_531_078,
name: 'yamllint',
started_at: '2024-08-18T08:04:44Z',
completed_at: '2024-08-18T08:20:17Z'
}
].find { |json| json[:id] == job } || {
id: job,
run_id: 1234,
name: 'run job',
started_at: '2024-08-18T08:04:44Z',
completed_at: '2024-08-18T08:20:17Z'
}
end