-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Adds 'Switch' as an Alias for 'Checkout` #5445
Conversation
- Updated the regex to allow either 'checkout' or 'switch' 2. Changes to gitGraphParser.spec.js - Additional test coverage added for the changes made to the parser. 3. Changes to gitGraphParserV2.spec.js - Additional test coverafe added for the changes made to the parser. 4. Changes to gitgraph.md - Updated documentation to let users know that checkout/switch can be used interchangeably.
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5445 +/- ##
==========================================
- Coverage 5.74% 5.74% -0.01%
==========================================
Files 276 277 +1
Lines 41886 41897 +11
Branches 514 489 -25
==========================================
Hits 2407 2407
- Misses 39479 39490 +11
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Wondeful implementation!
Can you add a rendering test as well?
- Added additional rendering test functionality for recognizing 'switch' as an alias to 'checkout'.
I only added two rendering test because it seems redundant to have |
Thanks for taking the time for my issue @FutzMonitor , and with breathtaking speed too! |
📑 Summary
Adds
switch
as an alias forcheckout
.Resolves #5422
📏 Design Decisions
Updated the regex that returns
CHECKOUT
to also work forswitch
. I added some test coverage to both parser specs.📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.develop
branch