Skip to content

Print diff to logs when applicable #444

Description

@2bndy5

Problem

If thread-comments and PR-reviews are disabled or disallowed, then the feedback may be hard to find. Having something in the logs about the suggested changes would be a sure way to show what fixes should be applied.

Solution

Log the auto-fix patch, if any, to stdout (with optional coloring of course).

Alternatives

File-annotations are somewhat hidden in the PR's "changed files" tab. Step-summary does not show unless you navigate to the run's summary page (instead of the browsing the logs for the run).

Additional context

This idea is a little inspired by pre-commit's --show-diff-on-failure flag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions