Skip to content

Commit dba3d66

Browse files
committed
fix: Address CodeRabbit review feedback
Signed-off-by: darshit2308 <darshit2308@gmail.com>
1 parent ecdf571 commit dba3d66

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/scripts/review-sync/tests/test-utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ function createMockGithub(options = {}) {
156156
},
157157
paginate: async (fn, opts) => {
158158
const result = await fn(opts);
159+
// github.paginate automatically unwraps the array from the response data
160+
if (result.data && result.data.check_runs) return result.data.check_runs;
159161
return result.data || result || [];
160162
},
161163
};

0 commit comments

Comments
 (0)