Skip to content

A GitHub Action that comments on the pull requests with a summary of changes classified according to your config.

License

Notifications You must be signed in to change notification settings

lykahb/pr-comment-changes-breakdown

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PR Comment with Changes Breakdown

A breakdown tells reviewer at a glance what the changes are. Does the bulk of them come from the tests or documentation? Is a particular subsystem affected? This heads-up can make a reviewer more motivated, particularly for the larger PRs.

Example usage

- uses: actions/checkout@v3
- uses: lykahb/paths-filter@v2
  id: filter
  with:
    stat: json
    filters: |
      src:
      - 'src/**/*.ts'
      - 'src/**/*.tsx'
      tests:
      - 'test/**'
      documentation:
      - '*.md'
    # or extract filters into a file:
    # filters: .github/group-files.yml
- uses: lykahb/pr-comment-changes-breakdown@v1
  with:
    diff-stat: ${{ steps.filter.outputs.stat }}

With that workflow, a comment for a PR may look like this:

diff

The breakdown only lists the groups that have changed files. And if some files do not fall into any group, they are categorized as "other".

Also see lykahb/paths-filter for the syntax of grouping files.

About

A GitHub Action that comments on the pull requests with a summary of changes classified according to your config.

Resources

License

Stars

Watchers

Forks

Packages

No packages published