Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support only formatting changed filesΒ #6

@Riley19280

Description

@Riley19280

When setting up this action, I expected the onlyDirty: true argument to only format changed files in the PR, since this is a fairly common use case for linting. However, it did not format anything, because all changes are already committed, and that is how Pint works.

I propose adding an option onlyChanged that would only format the files changed in the PR/commit. This was referenced in #5 (comment), and a workaround was given, to use another action to format only changed files. However, using the get all changed files action, I don't see any way that I would pass a list of files to format to Pint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions