-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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 color and arrow for merge commit (gitGraph) #5152
Fix color and arrow for merge commit (gitGraph) #5152
Conversation
✅ 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 #5152 +/- ##
========================================
Coverage 43.20% 43.20%
========================================
Files 23 23
Lines 5115 5115
Branches 23 23
========================================
Hits 2210 2210
Misses 2904 2904
Partials 1 1
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.
Please add some visual tests to verify the change. And a screenshot to the description as well, for reviewers.
b55cad3
to
6be91bc
Compare
Rebased on the latest develop, removed some codes that is related to another feature (new PR soon), and some visual test added. |
The tests I added refers to the last two example in the issue I opened (#5154). Please note that the result of the tests 32 and 33 have changed (the color of the arrow have been fixed) |
As expected, 2 tests are failing (I fixed the color of some arrows on a merge commit) but I don't know how to make the tests pass. |
@macherel, Thank you for the contribution! |
The tests will not pass, it's a limitation of how we've built the CI without external dependencies. |
@sidharthv96 The tests didn't pass due to randomly generated commit IDs in the git graph resulting in incompatibility between images. The resolution for this is in PR #5344. Can you either revert this commit and modify this PR or merge the other PR and reset the CI cached images for testing? I'm unfortunately unfamiliar with the precise mechanisms to remove previously cached images so I would need to defer to others. |
📑 Summary
Improve the arrow for merge commit of gitGraph
📏 Design Decisions
Simplify the way to choose the arrow color based to be able to be able to fix it for merge commits.
The shape of the arrow is changed for merge commit.
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSION
is used for all new features.develop
branch