-
Notifications
You must be signed in to change notification settings - Fork 25
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
Create new empty gh-pages branch if missing #163
base: main
Are you sure you want to change the base?
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.