-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add --squash-history option #127
base: master
Are you sure you want to change the base?
Conversation
This option is similar to --no-history (avoid bloating the repository size) but keep data. We squash all commits from gh-pages branch filtered on the current commit message. This allow workflows like keeping commits and data for a released doc and always override nightlies documentations.
Initial commit, openning PR for discussion. Know issues or things to test:
Tested on Linux with:
|
Add env var FILTER_BRANCH_SQUELCH_WARNING to avoid warnings and temporisation when git-filter is called.
About Windows, this is working with my current git installation: https://gitforwindows.org/ + recommended setup option to add third-party tools in PATH (by default setup option). We may want to add a note in documentation, or just keep it like this. |
Playing with GitHub actions, I see Flake8 results, fixed above. For my Github actions tests, I need to remove Python 2.7 checks, updating Python versions to 3.7 and 3.12. See: https://github.com/framillien/ghp-import/actions/runs/7657957284 |
Apologies for the delay. Code LGTM. Could you also add your CI fixes to this PR and then I'll merge. Thank you. |
Avoid deprecated Python version 2.7, being removed from GitHub Actions images.
Issue: #126
This option is similar to --no-history (avoid bloating the repository size) but keep data. We squash all commits from gh-pages branch filtered on the current commit message.
This allow workflows like keeping commits and data for a released doc and always override nightlies documentations.