API: Fix repository commits pagination