-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Hide add-matcher and remove-matcher from actions job logs
#36520
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
Merged
+38
−1
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
d6999ae
Initial plan
Copilot 88619be
Add filtering for workflow command lines and tests
Copilot 91d2ff8
Fix linting issues in test file
Copilot 552833a
Simplify test to validate log line filtering behavior
Copilot b79f034
Refactor log line processing to separate module
Copilot 03e12ea
Apply suggestion from @silverwind
silverwind 4429a50
snapshots
silverwind 6eaaed7
shorten
silverwind 44b5b93
fix lint
silverwind 4ed3f7d
reorder and document types
silverwind 8500e58
restart ci
silverwind e3a6a6a
restart ci
silverwind 75791e6
refactor test
silverwind d170c88
move actions log module from render/ to actions/
silverwind d80cec2
move functions into RepoActionView.vue
silverwind 7b18e6a
Merge branch 'main' into copilot/hide-workflow-command-lines
silverwind 7e7e3df
reorder
silverwind 9b7acb7
reduce diff
silverwind 1ba743e
reduce diff
silverwind 9c533aa
remove unnecessary exports
silverwind f6b4a66
Revert formatting/comment noise
silverwind 75c35c6
add tests
silverwind c5a5c49
rename test
silverwind 1e4d60f
fix exports
silverwind 1168e31
remove non-existant ::workflow-command::
silverwind 36b9d1d
use realistic workflow command examples in test fixtures
silverwind 8036b7b
Update web_src/js/components/RepoActionView.vue
wxiaoguang 68832e1
Update web_src/js/components/RepoActionView.vue
wxiaoguang f9e7e4b
remove superfluos test
silverwind ae670e3
simplify test
silverwind 29ab65c
Merge branch 'main' into copilot/hide-workflow-command-lines
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import {shouldHideLine, type LogLine} from './RepoActionView.vue'; | ||
|
|
||
| test('shouldHideLine', () => { | ||
| expect(([ | ||
| {index: 1, message: 'Starting build process', timestamp: 1000}, | ||
| {index: 2, message: '::add-matcher::/home/runner/go/pkg/mod/example.com/tool/matcher.json', timestamp: 1001}, | ||
| {index: 3, message: 'Running tests...', timestamp: 1002}, | ||
| {index: 4, message: '##[add-matcher]/opt/hostedtoolcache/go/1.25.7/x64/matchers.json', timestamp: 1003}, | ||
| {index: 5, message: 'Test suite started', timestamp: 1004}, | ||
| {index: 7, message: 'All tests passed', timestamp: 1006}, | ||
| {index: 8, message: '::remove-matcher owner=go::', timestamp: 1007}, | ||
| {index: 9, message: 'Build complete', timestamp: 1008}, | ||
| ] as Array<LogLine>).filter((line) => !shouldHideLine(line)).map((line) => line.message)).toMatchInlineSnapshot(` | ||
| [ | ||
| "Starting build process", | ||
| "Running tests...", | ||
| "Test suite started", | ||
| "All tests passed", | ||
| "Build complete", | ||
| ] | ||
| `); | ||
| }); |
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
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.