- Go to https://github.com/issues?q=review-requested%3A%40me
- Open the dev console, run this, and copy the output:
const pulls = Array.from(document.querySelectorAll('a[id^=issue_]'))
const links = pulls.map(i => i.href.replace('//github.com/', '//api.github.com/repos/').replace('/pull/', '/pulls/') + '/reviews')
const curls = links.map(l => `curl -H "Authorization: Bearer $GITHUB_TOKEN" --data '{"event": "APPROVE"}' ${l}`)
console.log(curls.join("\n"))
- Run this in the terminal:
export GITHUB_TOKEN=ghp_xxxxxxxxxxx
- Paste the output of step 2. in the terminal and press Return.