Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Getting more data about the changes that are grouped by path would unlock new ways to use this action.
My motivation is to get enough data to make a comment with changes broken down by the filter groups - see the example. Another usecase would be to have a condition that applies a label depending on the number of lines changed. For example, marking a PR with few changes in
src
as easy to review.There is a new output
{key}_stat
with a JSON/CSV that has the numstat data, aggregated by the filter groups. In effect, the data is similar to what one would get by callinggit diff --shortstat <diff_refs> <list of filter globs>
for each filter group.Here are the details:
FileNumstat
andFileStatus
and rename the existing functions that deal withgit diff
to mention status.git diff --numstat
for all scenarios of getting the data from gitother
for the files not matched by any filters. This is not related to the numstat changes but supports the usecase for commenting the breakdown of changes.The only observable change for the existing users should be the addition of a new group
other
.