#50 Code Formatting: Cloud side code formatting in GitHub using GitHub action.

preview_player
Показать описание

Goal:
In this video, we will learn how to auto-magically format code on GitHub using a GitHub action.

Objective:
- Show to how to format code on GitHub using a GitHub action.
- Also tell the pros and cons of doing it so that you can decide if you want to use it or not.

Recommendation:
- To be able to push formatted code on GitHub using an action in CI, you would need to switch off the main branch protection rule. This increases risk of accidentally corrupting your main branch by a direct push to the main branch. This is not a risk worth taking. So even though its good to know how it works in CI, its something not worth actually doing.

Next steps:
- See how to do formatting at the user side using git pre-commit hooks.

References:
Рекомендации по теме
join shbcf.ru