Create new empty gh-pages branch if missing#163
Conversation
|
This feature makes sense to me. The implementation seems robust enough and safe enough (safe as in no/low risk of overriding some content). |
consideRatio
left a comment
There was a problem hiding this comment.
Did you mean to include the push parameter to the publish_pages function? It doesn't seem to have a purpose for this change.
I think the test seemed a bit too detailed, where the key thing to test would be that we have the new git switch --orphan gh-pages call rather than re-verify all other parts. For example, if someone like myself would change a call with ["helm", "repo", "index", "--url", "https://example.org/chartpress"] to ["helm", "repo", "index", "--url=https://example.org/chartpress"] suddenly this test named test_publish_pages_firsttime would error.
|
As far as I can tell all the I added the |
|
👍 on adding the
Yes I think that would be better as this otherwise locks in how chartpress should behave in sharp detail beyond the scope of testing that we manage to handle the situation when a If you disagree I suggest we go for a merge straight away though. If we run into a test failure on this if something is changed down the line that breaks this test, we can address it then as well. |
This makes it easier to publish a new chart. If you think this feature is worthwhile I'll add some tests.