[SQUASH ME] pr_check: make API call only once