Repository navigation
fix(ci): repair holmes comment template indentation #187
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
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a637afe
fix(ci): repair holmes comment template indentation
flyingrobots 12b5061
fix(ci): use workspace path for holmes cli invocations
flyingrobots d83a5c8
fix(holmes): allow moriarty reports without eta
flyingrobots 7debc53
fix(ci): restore checkout before report assembly
flyingrobots 7e84332
refactor(ci): centralize holmes reporting workflow
flyingrobots 1ffc293
refactor(ci): harden holmes artifact handling
flyingrobots 6501593
fix(ci): ensure holmes reports directory exists in comment job
flyingrobots de9203c
chore: simplify holmes action inputs and cleanup fallbacks
flyingrobots 2640c06
fix(ci): ship full holmes dashboard assets
flyingrobots 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
Some comments aren't visible on the classic Files Changed page.
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,64 @@ | ||
| name: Run HOLMES CLI | ||
| description: Execute Wesley HOLMES CLI reporting command and collect artifacts. | ||
| inputs: | ||
| command: | ||
| description: HOLMES CLI subcommand to execute (investigate|verify|predict) | ||
| required: true | ||
| report-name: | ||
| description: Base name for report files (holmes|watson|moriarty) | ||
| required: true | ||
| schema-path: | ||
| description: Path to the GraphQL schema relative to the repository root | ||
| required: true | ||
| bundle-dir: | ||
| description: Path to the Wesley bundle directory relative to the repository root | ||
| required: true | ||
| history-file: | ||
| description: Path to MORIARTY history JSON relative to the repository root (defaults to <bundle-dir>/history.json) | ||
| required: false | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| command="${{ inputs.command }}" | ||
| report="${{ inputs['report-name'] }}" | ||
| schema_rel="${{ inputs['schema-path'] }}" | ||
| bundle_rel="${{ inputs['bundle-dir'] }}" | ||
| history_rel="${{ inputs['history-file'] }}" | ||
|
|
||
| schema_path="$GITHUB_WORKSPACE/$schema_rel" | ||
| if [ ! -f "$schema_path" ]; then | ||
| echo "Schema file not found at $schema_path" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| schema_dir="$(dirname "$schema_path")" | ||
| bundle_dir="$GITHUB_WORKSPACE/$bundle_rel" | ||
| bundle_json="$bundle_dir/bundle.json" | ||
| if [ ! -f "$bundle_json" ]; then | ||
| echo "Wesley bundle not found at $bundle_json" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| if [ -n "$history_rel" ]; then | ||
| history_path="$GITHUB_WORKSPACE/$history_rel" | ||
| else | ||
| history_path="$bundle_dir/history.json" | ||
| fi | ||
|
|
||
| json_path="$schema_dir/${report}-report.json" | ||
| md_path="$schema_dir/${report}-report.md" | ||
|
|
||
| node "$GITHUB_WORKSPACE/packages/wesley-holmes/src/cli.mjs" "$command" \ | ||
| --bundle-dir "$bundle_dir" \ | ||
| --history-file "$history_path" \ | ||
| --json "$json_path" > "$md_path" | ||
|
|
||
| cat "$md_path" | ||
|
|
||
| reports_dir="$GITHUB_WORKSPACE/reports/$report" | ||
| mkdir -p "$reports_dir" | ||
| cp "$json_path" "$reports_dir/${report}-report.json" | ||
| cp "$md_path" "$reports_dir/${report}-report.md" | ||
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
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
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
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.
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.