-
-
Notifications
You must be signed in to change notification settings - Fork 325
docs: add VHS tape for bump command GIF #1878
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
Open
HankyStyle
wants to merge
2
commits into
commitizen-tools:master
Choose a base branch
from
HankyStyle:docs/add-bump-tape
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+135
−1
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
|  | ||
|  | ||
|
|
||
| ## About | ||
|
|
||
|
|
||
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,134 @@ | ||
| Output cli_interactive/bump.gif | ||
|
|
||
| Require cz | ||
|
|
||
| # Use bash for cross-platform compatibility (macOS, Linux, Windows) | ||
| Set Shell bash | ||
|
|
||
| Set FontSize 16 | ||
| Set Width 878 | ||
| Set Height 568 | ||
| Set Padding 20 | ||
| Set TypingSpeed 50ms | ||
|
|
||
| Set Theme { | ||
| "name": "Commitizen", | ||
| "black": "#232628", | ||
| "red": "#fc4384", | ||
| "green": "#b3e33b", | ||
| "yellow": "#ffa727", | ||
| "blue": "#75dff2", | ||
| "magenta": "#ae89fe", | ||
| "cyan": "#708387", | ||
| "white": "#d5d5d0", | ||
| "brightBlack": "#626566", | ||
| "brightRed": "#ff7fac", | ||
| "brightGreen": "#c8ed71", | ||
| "brightYellow": "#ebdf86", | ||
| "brightBlue": "#75dff2", | ||
| "brightMagenta": "#ae89fe", | ||
| "brightCyan": "#b1c6ca", | ||
| "brightWhite": "#f9f9f4", | ||
| "background": "#1e1e2e", | ||
| "foreground": "#afafaf", | ||
| "cursor": "#c7c7c7" | ||
| } | ||
|
|
||
| # Hide initial shell prompt | ||
| Hide | ||
|
|
||
| # Wait for terminal to be ready | ||
| Sleep 1s | ||
|
|
||
| # Set a clean, simple prompt (while hidden) | ||
| Type "PS1='$ '" | ||
| Enter | ||
| Sleep 300ms | ||
|
|
||
| # Create a clean temporary directory for recording | ||
| Type "rm -rf /tmp/commitizen-example && mkdir -p /tmp/commitizen-example && cd /tmp/commitizen-example" | ||
| Enter | ||
| Sleep 500ms | ||
|
|
||
| # Initialize git repository | ||
| Type "git init" | ||
| Enter | ||
| Type "git config user.email 'you@example.com'" | ||
| Enter | ||
| Type "git config user.name 'Your Name'" | ||
| Enter | ||
| Sleep 500ms | ||
|
|
||
| # Initialize commitizen config with version 0.0.1 and changelog enabled | ||
| Type `cat > pyproject.toml << 'EOF'` | ||
| Enter | ||
| Sleep 100ms | ||
| Type `[tool.commitizen]` | ||
| Enter | ||
| Sleep 100ms | ||
| Type `version = "0.0.1"` | ||
| Enter | ||
| Sleep 100ms | ||
| Type `update_changelog_on_bump = true` | ||
| Enter | ||
| Sleep 100ms | ||
| Type "EOF" | ||
| Enter | ||
| Sleep 300ms | ||
|
|
||
| # Create initial commit (no tag, so cz bump will ask "Is this the first tag created?") | ||
| Type "git add pyproject.toml" | ||
| Enter | ||
| Sleep 300ms | ||
|
|
||
| Type "git commit -m 'chore: initial commit'" | ||
| Enter | ||
| Sleep 500ms | ||
|
|
||
| # Create a feat commit that will trigger a MINOR bump (0.0.1 -> 0.1.0) | ||
| Type "echo 'new feature' > feature.py" | ||
| Enter | ||
| Sleep 300ms | ||
|
|
||
| Type "git add feature.py" | ||
| Enter | ||
| Sleep 300ms | ||
|
|
||
| Type "git commit -m 'feat: add awesome new feature'" | ||
| Enter | ||
| Sleep 500ms | ||
|
|
||
| # Clear the screen to start fresh | ||
| Type "clear" | ||
| Enter | ||
| Sleep 500ms | ||
|
|
||
| # Show commands from here | ||
| Show | ||
|
|
||
| # Step 1: Show current version | ||
| Type "cz version --project" | ||
| Sleep 500ms | ||
| Enter | ||
| Sleep 1s | ||
|
|
||
| # Step 2: Run cz bump (no existing tag, will prompt for first tag) | ||
| Type "cz bump" | ||
| Sleep 500ms | ||
| Enter | ||
|
|
||
| # Wait for the "Is this the first tag created?" prompt | ||
| Sleep 2s | ||
|
|
||
| # Answer Yes to "Is this the first tag created?" (default is Yes, just press Enter) | ||
| Enter | ||
| Sleep 3s | ||
|
|
||
| # Step 3: Show new version after bump | ||
| Type "cz version --project" | ||
| Sleep 500ms | ||
| Enter | ||
| Sleep 1s | ||
|
|
||
| # Wait for final output | ||
| Sleep 3s | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm not sure whether we should do the setup in this tape file. It is probably cleaner if we can setup the environment for recording in a bash script
Uh oh!
There was an error while loading. Please reload this page.
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.
Do you mean creating setup scripts (e.g. setup.sh) and let this tape source it in the beginning Hide section?
setup.sh
bump.tape
Maybe we can set up the environment in docspublish.yml instead?