Skip to content

feat: add commit option to code-style action - #1648

Merged
RobPasMue merged 15 commits into
mainfrom
feat/code-style-change-commit
Nov 4, 2026
Merged

RobPasMue merged 15 commits into
mainfrom
feat/code-style-change-commit

Conversation

@RobPasMue

Copy link
Copy Markdown
Member

Closes #1630

@github-actions github-actions Bot added the enhancement General improvements to existing features label Nov 4, 2026
@github-actions github-actions Bot added the ci Pipelines maintenance related label Nov 4, 2026
@RobPasMue
RobPasMue marked this pull request as ready for review November 4, 2026 10:52
@RobPasMue
RobPasMue requested a review from a team as a code owner November 4, 2026 10:52
@RobPasMue

RobPasMue commented Nov 4, 2026 •

Copy link
Copy Markdown
Member Author

With this feature.. we will be able to remove ourselves completely from pre-commit.ci usage - since its two main benefits were autoupdating dependencies and autofixing issues. The former has been solved by @klmcadams' implementation of the dependabot pre-commit config on our repos. The latter is handled by this feature.

Once it's merged, release, presented and consumed downstream by packages leveraging the app.. we'll be able to get rid of the third party dependency

@RobPasMue

Copy link
Copy Markdown
Member Author

Pinging @ansys/pyansys-core team... this is critical in our path to detach ourselves from the app

@RobPasMue
RobPasMue requested a review from klmcadams November 4, 2026 12:01
@RobPasMue RobPasMue self-assigned this Nov 4, 2026

@moe-ad moe-ad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for implementing this @RobPasMue. I wonder if it is worth adding a comment directly to a PR in the non-fixable case. That could be a nice user experience.

@RobPasMue

Copy link
Copy Markdown
Member Author

Thanks for implementing this @RobPasMue. I wonder if it is worth adding a comment directly to a PR in the non-fixable case. That could be a nice user experience.

Good idea! :)

@pyansys-ci-bot

pyansys-ci-bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Code style issues resolved

All hooks pass as of 821f667.

@RobPasMue

Copy link
Copy Markdown
Member Author

Looks like the commenting logic is working.. if an unfixable code-style failure is detected it shows:

image

And once corrected, we update the previous message

image

It all works based on some MD comments that are hidden =)

@RobPasMue
RobPasMue requested a review from moe-ad November 4, 2026 13:51
@RobPasMue
RobPasMue merged commit 95bf065 into main Nov 4, 2026
91 checks passed
@RobPasMue
RobPasMue deleted the feat/code-style-change-commit branch November 4, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Pipelines maintenance related enhancement General improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a "fix-issues" entrypoint to the code-style action

4 participants