Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 30 additions & 19 deletions .github/workflows/daily-code-metrics.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 30 additions & 19 deletions .github/workflows/daily-code-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,17 @@ After generating charts:

For each metric: current value, 7-day % change, 30-day % change, trend indicator (⬆️/➑️/⬇️)

## Report Formatting Guidelines

**IMPORTANT**: Use h3 (###) or lower for all headers in the discussion report to maintain proper document hierarchy. The discussion title serves as h1.

**Structure**:
- Main sections: h3 (###) - e.g., "### πŸ“Š Visualizations"
- Subsections: h4 (####) - e.g., "#### LOC Distribution by Language"
- Detail sections inside `<details>`: h3/h4 as appropriate

**Progressive Disclosure**: Keep executive summary and key visualizations visible. Use `<details>` tags for detailed metrics tables (as already shown in template).

## Report Format

Use detailed template with embedded visualization charts:
Expand All @@ -247,66 +258,66 @@ Use detailed template with embedded visualization charts:
```markdown
Brief 2-3 paragraph executive summary highlighting key findings, quality score, notable trends, and any concerns requiring attention.

## πŸ“Š Visualizations
### πŸ“Š Visualizations

### LOC Distribution by Language
#### LOC Distribution by Language
![LOC by Language](URL_FROM_UPLOAD_ASSET)

[Analysis of language distribution and changes]

### Top Directories by LOC
#### Top Directories by LOC
![Top Directories](URL_FROM_UPLOAD_ASSET)

[Analysis of directory sizes and organization]

### Quality Score Breakdown
#### Quality Score Breakdown
![Quality Score](URL_FROM_UPLOAD_ASSET)

[Current quality score and component analysis]

### Test Coverage Analysis
#### Test Coverage Analysis
![Test Coverage](URL_FROM_UPLOAD_ASSET)

[Test coverage metrics and recommendations]

### Code Churn (Last 7 Days)
#### Code Churn (Last 7 Days)
![Code Churn](URL_FROM_UPLOAD_ASSET)

[Most changed files and activity patterns]

### Historical Trends (30 Days)
#### Historical Trends (30 Days)
![Historical Trends](URL_FROM_UPLOAD_ASSET)

[Trend analysis and significant changes]

<details>
<summary><b>πŸ“ˆ Detailed Metrics</b></summary>

## Size Metrics
### Size Metrics

### Lines of Code by Language
#### Lines of Code by Language
| Language | LOC | % of Total | Change (7d) |
|----------|-----|------------|-------------|
| Go | X,XXX | XX% | ⬆️ +X% |
| JavaScript | X,XXX | XX% | ➑️ 0% |
| ... | ... | ... | ... |

### Lines of Code by Directory
#### Lines of Code by Directory
| Directory | LOC | % of Total | Files |
|-----------|-----|------------|-------|
| pkg/ | X,XXX | XX% | XXX |
| cmd/ | X,XXX | XX% | XX |
| ... | ... | ... | ... |

## Quality Indicators
### Quality Indicators

- **Average File Size**: XXX lines
- **Large Files (>500 LOC)**: XX files
- **Function Count**: X,XXX functions
- **Comment Lines**: X,XXX lines (XX% ratio)
- **Comment Density**: XX%

## Test Coverage
### Test Coverage

- **Test Files**: XX files
- **Test LOC** (`test_lines_of_code`): X,XXX lines
Expand All @@ -315,36 +326,36 @@ Brief 2-3 paragraph executive summary highlighting key findings, quality score,
- **Trend (7d)**: ⬆️ +X%
- **Trend (30d)**: ⬆️ +X%

## Code Churn (Last 7 Days)
### Code Churn (Last 7 Days)

- **Files Modified**: XXX files
- **Commits**: XXX commits
- **Lines Added**: +X,XXX lines
- **Lines Deleted**: -X,XXX lines
- **Net Change**: +/-X,XXX lines

### Most Active Files
#### Most Active Files
1. path/to/file.go: +XXX/-XXX lines
2. path/to/file.js: +XXX/-XXX lines
...

## Workflow Metrics
### Workflow Metrics

- **Total Workflow Files (.md)** (`total_workflows`): XXX files
- **Compiled Workflows (.lock.yml)**: XXX files
- **Average Workflow Size**: XXX lines
- **Growth (7d)**: ⬆️ +X%

## Documentation
### Documentation

- **Doc Files (docs/)**: XXX files
- **Doc LOC**: X,XXX lines
- **Code-to-Docs Ratio**: X.XX:1
- **Documentation Coverage**: XX%

## Quality Score: XX/100
### Quality Score: XX/100

### Component Breakdown
#### Component Breakdown
- **Test Coverage (30%)**: XX/30 points
- **Code Organization (25%)**: XX/25 points
- **Documentation (20%)**: XX/20 points
Expand All @@ -353,7 +364,7 @@ Brief 2-3 paragraph executive summary highlighting key findings, quality score,

</details>

## πŸ’‘ Insights & Recommendations
### πŸ’‘ Insights & Recommendations

1. [Specific actionable recommendation based on metrics]
2. [Another recommendation]
Expand Down
10 changes: 10 additions & 0 deletions pkg/cli/templates/github-agentic-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,16 @@ The YAML frontmatter supports these fields:
target-repo: "owner/repo" # Optional: cross-repository
```
When using `safe-outputs.add-labels`, the main job does **not** need `issues: write` or `pull-requests: write` permission since label addition is handled by a separate job with appropriate permissions.
- `remove-labels:` - Safe label removal from issues or PRs
```yaml
safe-outputs:
remove-labels:
allowed: [automated, stale] # Optional: restrict to specific labels
max: 3 # Optional: maximum number of operations (default: 3)
target: "*" # Optional: "triggering" (default), "*" (any issue/PR), or number
target-repo: "owner/repo" # Optional: cross-repository
```
When `allowed` is omitted, any labels can be removed. Use `allowed` to restrict removal to specific labels. When using `safe-outputs.remove-labels`, the main job does **not** need `issues: write` or `pull-requests: write` permission since label removal is handled by a separate job with appropriate permissions.
- `add-reviewer:` - Add reviewers to pull requests
```yaml
safe-outputs:
Expand Down