Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet 基于 dotnet format 的 GitHub Action 自动代码格式化机器人 #114

Open
utterances-bot opened this issue Sep 22, 2023 · 2 comments

Comments

@utterances-bot
Copy link

dotnet 基于 dotnet format 的 GitHub Action 自动代码格式化机器人

dotnet 基于 dotnet format 的 GitHub Action 自动代码格式化机器人

https://blog.lindexi.com/post/dotnet-%E5%9F%BA%E4%BA%8E-dotnet-format-%E7%9A%84-GitHub-Action-%E8%87%AA%E5%8A%A8%E4%BB%A3%E7%A0%81%E6%A0%BC%E5%BC%8F%E5%8C%96%E6%9C%BA%E5%99%A8%E4%BA%BA.html

Copy link

我个人感觉不应当自动格式化,而是应当通过github action拦截未格式化的代码提交。让提交者主动格式化后squash commit再进行mr.

@lindexi
Copy link
Owner

lindexi commented Sep 26, 2023

@wangweihong 这个看你的团队想法咯。我现在只有文件编码部分进行拦截。代码格式化不拦截

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants