update_issues.sh: Refactor to loop commits in MR loop
To process an MR we need to do a few API calls. To reduce those API calls, loop over the MRs once and loop over the commits for every MR loop.
To process an MR we need to do a few API calls. To reduce those API calls, loop over the MRs once and loop over the commits for every MR loop.