Skip to content
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

Fix image attach when creating confluence page #14

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

martinbalint
Copy link

Fixes issue #13 when creating page with images failed.
With this PR first page is created and then images are attached.

@szn
Copy link
Owner

szn commented Feb 21, 2024

Thanks @martinbalint for the PR! It also reminds me how badly this repo needs test automation.

I'll do my best to test it and merge it in 2-3 days.


confluence_url = ConfluenceMD.get_link_from_response(response)
logger.debug(
"%s %s", 'Page overwritten' if overwrite else 'New page created', confluence_url
"%s %s", 'Page overwritten' if overwrite_id else 'New page created', confluence_url
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that

Copy link
Owner

@szn szn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works in my scenarios. You were also right with #13 – one had to run the command twice to create a new page with an image.

@szn szn merged commit d4f5607 into szn:main Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants