Retrieve commits by commit ID and user_id