You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use multiple y-axes if scales differ significantly
179
-
- Show 7-day moving averages
180
-
- Annotate significant changes (>10%)
181
-
- Save to: `/tmp/gh-aw/python/charts/historical_trends.png`
123
+
1.**LOC by Language** (`loc_by_language.png`) — horizontal bar chart of LOC by language (sorted descending, percentage labels, language-type colors, total LOC in title). Save to `/tmp/gh-aw/python/charts/loc_by_language.png`.
124
+
2.**Top Directories** (`top_directories.png`) — horizontal bar chart of top 10 directories by LOC (full paths, LOC and percent, highlight `cmd`/`pkg`/`docs`/`workflows`, distinct directory-type colors). Save to `/tmp/gh-aw/python/charts/top_directories.png`.
125
+
3.**Quality Score Breakdown** (`quality_score_breakdown.png`) — stacked bar or pie breakdown of Test Coverage 30%, Code Organization 25%, Documentation 20%, Churn Stability 15%, Comment Density 10%; show current vs target (100%) with red→green gradient. Save to `/tmp/gh-aw/python/charts/quality_score_breakdown.png`.
126
+
4.**Test Coverage** (`test_coverage.png`) — grouped comparison of test vs source LOC by language, ratio visualization, optional trend indicator, and recommended ratio marker (0.5–1.0). Save to `/tmp/gh-aw/python/charts/test_coverage.png`.
127
+
5.**Code Churn** (`code_churn.png`) — diverging bars for top 10 most changed source files in 7 days; **exclude**`*.lock.yml`, show added/deleted/net, color by file type, truncate long paths when needed. Save to `/tmp/gh-aw/python/charts/code_churn.png`.
128
+
6.**Historical Trends** (`historical_trends.png`) — multi-line 30-day trends for total LOC, test coverage %, and quality score with optional multi-axis scales, 7-day moving averages, and >10% annotations. Save to `/tmp/gh-aw/python/charts/historical_trends.png`.
182
129
{{else}}
183
130
Generate **2 high-quality charts** focusing on the most actionable signals:
- Use multiple y-axes if scales differ significantly
206
-
- Show 7-day moving averages
207
-
- Annotate significant changes (>10%)
208
-
- Save to: `/tmp/gh-aw/python/charts/historical_trends.png`
134
+
1.**Quality Score Breakdown** (`quality_score_breakdown.png`) — stacked bar or pie breakdown of Test Coverage 30%, Code Organization 25%, Documentation 20%, Churn Stability 15%, Comment Density 10%; show current vs target (100%) with red→green gradient. Save to `/tmp/gh-aw/python/charts/quality_score_breakdown.png`.
135
+
2.**Historical Trends** (`historical_trends.png`) — multi-line 30-day trends for total LOC, test coverage %, and quality score with optional multi-axis scales, 7-day moving averages, and >10% annotations. Save to `/tmp/gh-aw/python/charts/historical_trends.png`.
209
136
{{/if}}
210
137
211
138
### Chart Quality Standards
@@ -307,20 +234,17 @@ Use detailed template with embedded visualization charts:
# This is equivalent to piping but does not require a separate command before '|'
61
-
safeoutputs add_comment .< /tmp/comment.json
62
-
```
53
+
If pipes are blocked by bash policy, write JSON to a file and use redirection with `.` (for example: `safeoutputs create_pull_request . < /tmp/payload.json`).
63
54
64
55
> **Why prefer JSON payload mode?**
65
-
> - Single operation for any number of arguments — no repeated `--key value` flags
66
-
> - Native types (integers, booleans, arrays) are preserved exactly as specified
67
-
> - No shell quoting or escaping needed for newlines, quotes, or special characters
68
-
> - Agents can construct the payload as a structured object before emitting the command
69
-
> - File redirection (`< file`) works even when pipes (`|`) are restricted
56
+
> - Preserves native types and avoids shell quoting/escaping pitfalls
57
+
> - Supports both pipe and file-redirection input with the same `.` sentinel
Copy file name to clipboardExpand all lines: actions/setup/md/safe_outputs_prompt.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,7 @@ Safe-output calls are write-once declarations for real downstream side effects.
10
10
11
11
**Do not inspect infrastructure internals.** When a tool or command fails, do not inspect Docker sockets (`/var/run/docker.sock`), mount tables (`/proc/self/mounts`), container networking (`/proc/net`), `/host` paths, git object storage internals, or container-runtime environment internals. These are outside your control; use `report_incomplete` after the retry limit.
12
12
13
-
When no action is needed, call noop like this:
14
-
```json
15
-
{"noop": {"message": "No action needed: [brief explanation of what was analyzed and why no action was required]"}}
16
-
```
13
+
When no action is needed, call `noop` with a short status message explaining what you checked and why no action was required.
17
14
18
15
temporary_id: optional cross-reference field. Canonical form: '#aw_' followed by 3–12 alphanumeric or underscore characters — e.g., '#aw_abc1', '#aw_pr_fix'. Pattern: /^#?aw_[A-Za-z0-9_]{3,12}$/i (the '#' prefix is optional; bare 'aw_abc1' is accepted and normalised to '#aw_abc1' automatically). Use this form for all field values (temporary_id, item_number, issue_number, parent, etc.). In body/markdown text, '#aw_abc1' references are replaced with the real issue/PR number after creation. Omit entirely when not needed.
0 commit comments