suzuki-shunsuke/PR Diff

Get diff of a pull request via GitHub API with git fallback

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pr_numberPull Request number. If empty, the action falls back to `github.event.pull_request.number`. no
repositoryA target repository in the `owner/repo` format. no${{ github.repository }}
github_tokenGitHub Access Token. `contents:read` and `pull-requests:read` are required. It is also used for authentication when fetching commits in the git fallback path. no${{ github.token }}
github_api_urlGitHub API base URL. Useful for GitHub Enterprise Server. no${{ github.api_url }}
output_pathPath to write the diff to. If empty, the action writes the diff to a temporary file under `os.tmpdir()`. no
working_directoryWorking directory for the git fallback. If empty, `process.cwd()` is used. If the directory is a Git repository, the action fetches commits into it; otherwise a temporary directory is created. no
namedescription
diff_pathPath to the file containing the pull request diff.
sizeSize of the diff in bytes.