GitHub Actions Request

Published on Friday, 24 December 2021

The actions/github-script has an option to send a request, that is already authenticated with the GitHub API.

const diff_url = context.payload.pull_request.diff_url const result = await github.request(diff_url)