actions-marketplace-validations/git-diff-action

A GitHub Action for gathering the `git diff` of a pull request in JSON format

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
base_branchThe "base" or "target" branch to use for the git diffyesHEAD^1
json_diff_file_outputOptionally write the JSON diff output to a fileno""
raw_diff_file_outputOptionally write the raw diff output to a fileno""
file_output_onlyOnly use file related outputs and do not print any diffs to console / loggersnofalse
search_pathOptionally limit the scope of the diff operation to a specific sub-pathno.
max_buffer_sizeMaximum output buffer size. Defaults to 10M, try increasing if you have issues. This value is technically a string but it gets converted to an integer.no10000000
git_optionsAdditional git diff options to pass to the git binary as argv tokensno--no-color --full-index
git_diff_fileOptionally read the diff from a file inside the GitHub workspace instead of running `git diff`nofalse
namedescription
json-diffThe `git diff` of the pull request in JSON format
raw-diffThe raw `git diff` of the pull request
json-diff-pathThe path to the JSON diff file
raw-diff-pathThe path to the raw diff file