Add --graph option to display workflow job dependencies#150
Merged
Conversation
This feature allows users to visualize workflow job dependencies without executing the workflow. Long job names are truncated to 15 characters with a trailing "~" for better readability. Usage: probe --graph workflow.yml Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
- ascii-dag: ASCII DAG rendering engine with Sugiyama layout algorithm - dag: Generic DAG utilities for topological sorting and cycle detection Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
- Update README.md and README.ja.md with --graph option - Update CLI reference documentation in both English and Japanese Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
- Fix errcheck: handle f.Close() and fmt.Fprintf errors - Fix unused: remove unused functions, types, and variables - Fix staticcheck: use switch statements and improve loop conditions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
Code Metrics Report
Details | | main (23359fe) | #150 (e267841) | +/- |
|--------------------|----------------|----------------|-------|
+ | Coverage | 48.8% | 53.1% | +4.3% |
| Files | 52 | 63 | +11 |
| Lines | 5251 | 6138 | +887 |
+ | Covered | 2563 | 3263 | +700 |
- | Code to Test Ratio | 1:1.1 | 1:1.0 | -0.1 |
| Code | 10575 | 12169 | +1594 |
+ | Test | 12109 | 13230 | +1121 |Code coverage of files in pull request scope (73.0% → 77.4%)
Reported by octocov |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
--graphCLI option to visualize workflow job dependencies as ASCII artUsage
Example Output
Test plan
truncateLabel()functionRenderDependencyGraph()methodexamples/needs-literal.yml--helpdisplays new option🤖 Generated with Claude Code