Closed KTibow closed 1 year ago
Mind pulling this in @crowbarz?
@KTibow on initial review this looks like a worthwhile effort, though I think it's prudent to perform some due diligence first. I note that you really do mean "recent" in a literal sense (9 days ago!) so I have a few questions to help me better understand the goals of your code and evaluate whether to move to it from the hassfest GitHub action currently in use and endorsed by balloob:
Thanks.
To clarify my second question, I wanted to know if your future plan for this action was to get it adopted by the HACS or HA code owners as a standard requirement for new integrations submitted into HACS and/or HA core.
After reviewing the action in more depth, I have some more questions/comments:
custom_integration/blueprint
is used by the action, and the README implies the main purpose of the repository is a home for the action rather than a replacement blueprint.FORMAT_CODE
to DISABLED
per the README, then how do I also avoid passing a GITHUB_TOKEN to the action as well? The permissions for the automatically created GITHUB_TOKEN are too broad for this action in this case, as there is no need for read/write access to the repository if formatting isn't enabled.I don't have this plan. I just wanted to make something that anybody could use. I currently have pending PRs to add a link to the HACS GitHub Actions doc in the hacs/default PR template, and to add ha-blueprint in the tip box for the HACS GitHub Actions doc. I have no plans to do anything for the core, they already have their own set of rules which I based mine off of.
I recently announced ha-blueprint:
https://community.home-assistant.io/t/made-a-custom-integration-or-card-ive-created-an-all-in-one-github-action-for-you/235041 This makes it so it auto-checks for HACS, hassfest, and flake8 so you won't have to worry about it being invalid.