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

feat(option): add on-changes-option #34

Merged
merged 2 commits into from Oct 21, 2020

Conversation

Nico385412
Copy link
Contributor

resolves #15

I'm not an expert in shell but this pr do the job, i would like to know your opinion on it :D

@rlespinasse rlespinasse self-requested a review October 18, 2020 17:31
@rlespinasse rlespinasse added the enhancement New feature or request label Oct 18, 2020
Copy link
Owner

@rlespinasse rlespinasse left a comment

Choose a reason for hiding this comment

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

👍 Good job, Thanks for this PR.
Only few comments to make it right.

runner.sh Outdated
Comment on lines 12 to 14
#/ --remove-page-suffix Remove page suffix when possible
#/ --on-changes Export drawio file only if he's newer than exported files
#/ (in case of single page file)
Copy link
Owner

Choose a reason for hiding this comment

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

Rectify the lines order and some typo

Suggested change
#/ --remove-page-suffix Remove page suffix when possible
#/ --on-changes Export drawio file only if he's newer than exported files
#/ (in case of single page file)
#/ --remove-page-suffix Remove page suffix when possible
#/ (in case of single page file)
#/ --on-changes Export drawio files only if it's newer than exported files

runner.sh Outdated
echo "+++ generate adoc file"
create_asciidoc_page "$path" "$filename" "$page" "$output_filename" "$output_file"
echo "image '$output_file.png'"
if [ "$should_retry" == "false" -a "$ON_CHANGES" == "true" ]; then
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
if [ "$should_retry" == "false" -a "$ON_CHANGES" == "true" ]; then
if [ "$should_retry" == "false" ] && [ "$ON_CHANGES" == "true" ]; then

@rlespinasse rlespinasse merged commit 0b5dde2 into rlespinasse:v3.x Oct 21, 2020
@rlespinasse
Copy link
Owner

🎉 This PR is included in version 3.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to only export changed file
2 participants