-
-
Notifications
You must be signed in to change notification settings - Fork 7k
enhance(actions): replace ansi_up with first-party code
#38619
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
silverwind
wants to merge
24
commits into
go-gitea:main
Choose a base branch
from
silverwind:actions-log-ansi-fast-path
base: main
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.
Open
Changes from 4 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
730e078
perf(actions): skip `ansi_up` for log lines without escape sequences
silverwind b79b0c8
refactor: inline the single-use fast-path condition
silverwind 41b5289
refactor: extract renderAnsiToHtml, check for URLs once
silverwind bff0488
expand comment
silverwind 7dadd84
Apply suggestion from @silverwind
silverwind f04e432
fix ansi render instance & state
wxiaoguang 757ecbd
feat(actions): replace ansi_up with a purpose-built ANSI renderer
silverwind bc47ff5
fix: restore the js-yaml version
silverwind f64f3b6
feat(actions): render OSC 8 hyperlinks
silverwind 2c35c95
fix(actions): handle sgr colon sub-parameters and underline color
silverwind 2015207
feat(actions): render inverse, conceal, strikethrough and overline
silverwind ee9bcce
refactor(actions): express ansi styles as classes
silverwind 39c66c9
perf(actions): render blink, fix conceal, halve the colored line cost
silverwind 66534ca
refactor(actions): fold the render function into AnsiLineRenderer
silverwind ed8aff7
refactor(actions): linkify while rendering, guard the initial style b…
silverwind e6f8ed0
refactor(actions): build hex colors with colord, trim the renderer
silverwind 706c503
test: use the javascript scheme literally in the hyperlink case
silverwind acc65ea
refactor(actions): wrap the initial style check, drop a restating com…
silverwind 8cfbbee
refactor(actions): decide class vs inline color in one place
silverwind 9aaa635
refactor(actions): spell out the text-decoration-line combinations
silverwind 38cb2c7
Apply suggestion from @silverwind
silverwind cfe71ed
Apply suggestion from @silverwind
silverwind e96ecda
Apply suggestion from @silverwind
silverwind ec70602
Merge branch 'main' into actions-log-ansi-fast-path
silverwind 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.