Closed ddgenome closed 4 years ago
And when you tell it to commit directly to the branch, it still seems to open a PR for config changes.
@ddgenome there's an entirely different section that controls the update config behaviour at the bottom of the config page. That's that part that's responsible for the updates. Did you use that?
Yes, I had that set to the value you show in your screenshot, but no changes were made to the config. For example
Looking at the code, it appears changes are only pushed if the "Fix problems" setting is not "none".
Perhaps that should key off the configuration
parameter, https://github.com/atomist-skills/prettier-skill/blob/4ac399343bfe661a4804da0036eb25e34e04d3fb/lib/configuration.ts#L31 .
Yeah, that first code snippet is a bug. Which btw. this bug is the same in the eslint-skill :-(
The description of the Fix problems parameter:
Led me to think it only applied to fixes in formatting created by prettier. It turns out it also applies to the changes made when updating prettier configuration and git hooks.
I'd recommend updating the description of the parameter or separating the behavior of prettier fixes and prettier configuration/hook updates.