Skip to content

Idea: auto fix for fmt and codegen #3232

@spalberg

Description

@spalberg

Just an idea, simply close the issue if it does not make sense to you or its overkill 😃

In order to make sure that the generated files are always up to date without any ping-pong in the pull requests, this project could configure an auto fix workflow using github actions - the same goes for fmt if this is ever an issue or any other automatable tasks.

This can be done using the autofix github app which also works on PRs from forks.

Here is an example for a workflow fixing golang PR: https://autofix.ci/setup#go

Since you seem to squash PRs on merge anyway, the potential extra commits fixing the PR should not matter to the history.
The downsides of this approach are that some people might be confused about automated commits on their PRs and that the app needs to be installed in the github org - although it can be scoped to single repositories, I'm not sure how flexible google is which such things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions