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
14 changes: 14 additions & 0 deletions .changeset/fix-agents-md-drift.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@bfra.me/.github": patch
---

Update AGENTS.md to reflect current file structure

- Correct `renovate-changesets` src file count from 96 to 125
- Add missing files to `renovate-changesets/AGENTS.md` structure listing:
action-config.ts, action-outputs.ts, changeset-info-formatter.ts,
changeset-writer.ts, run-generation-helpers.ts, run-generation-outputs.ts,
pr-comment-creator.ts, pr-description-updater.ts, summary-generator-types.ts,
and utils/ directory
- Add missing test files to listing: setup.ts, extract-dependencies-from-title.test.ts,
phantom-dependency-regression.test.ts
17 changes: 15 additions & 2 deletions .github/actions/renovate-changesets/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ Auto-generates changeset files for Renovate dependency update PRs. Supports GitH
```
src/
├── index.ts # Entry point — delegates to run()
├── action-config.ts # Action input configuration parsing
├── action-outputs.ts # Action output types and helpers
├── run.ts # Main orchestrator — init → analysis → generation → PR ops
├── run-init.ts # PR validation, config loading, Renovate context extraction
├── run-analysis.ts # Semver impact, categorization, bump decision pipeline
├── run-generation.ts # Changeset content generation and multi-package handling
├── run-generation-helpers.ts # Helper utilities for changeset generation
├── run-generation-outputs.ts # Output formatting for generation step
├── run-pr.ts # Post-generation PR operations (comments, labels)
├── pr-comment-creator.ts # Creates PR comments with changeset summaries
├── pr-description-updater.ts # Updates PR description with changeset info
├── renovate-parser.ts # Barrel re-export of parser/ functions (no class)
├── parser/ # Renovate PR metadata parsing (title, body, labels, branches)
Expand All @@ -26,9 +32,12 @@ src/
├── categorization/ # Categorization sub-modules (dependency, risk, aggregation)
├── changeset-summary-generator.ts # generateChangesetSummary() function — human-readable descriptions
├── summary-generator-types.ts # Type definitions for summary generation
├── summaries/ # Summary generation sub-modules (templates, context, formatters)
├── changeset-template-engine.ts # ChangesetTemplateEngine class — renders .md from templates
├── changeset-info-formatter.ts # Formats changeset metadata for display
├── changeset-writer.ts # Writes changeset files to disk
├── changeset-deduplicator.ts # deduplicateChangesets() function — prevents duplicate changesets
├── deduplicator/ # Deduplication sub-modules
Expand Down Expand Up @@ -60,14 +69,17 @@ src/
├── python-change-detector.ts # detectPythonChangesFromPR() function
├── go-change-detector.ts # detectGoChangesFromPR() function
├── detectors/go-*.ts # Go sub-modules (change analyzer, parser, types, version)
└── jvm-change-detector.ts # detectJVMChangesFromPR() function
├── jvm-change-detector.ts # detectJVMChangesFromPR() function
└── utils/ # Shared utility functions (branch validator, title parser, file matcher)

test/
├── setup.ts # Vitest global test setup
├── index.test.ts # Main integration test with full mocking
├── integration/
│ ├── end-to-end.test.ts # Full action simulation
│ └── components.test.ts # Component interaction tests
├── renovate-parser.test.ts
├── extract-dependencies-from-title.test.ts
├── changeset-summary-generator.test.ts
├── semver-bump-decision-engine.test.ts
├── semver-impact-assessor.test.ts
Expand All @@ -77,7 +89,8 @@ test/
├── docker-change-detector.test.ts
├── github-actions-change-detector.test.ts
├── multi-package-analyzer.test.ts
└── grouped-updates-security-patches.test.ts
├── grouped-updates-security-patches.test.ts
└── phantom-dependency-regression.test.ts
```

## WHERE TO LOOK
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Organization defaults, reusable workflows, custom GitHub Actions, and workflow t
./
├── .github/
│ ├── actions/
│ │ ├── renovate-changesets/ # Complex action: auto-generates changesets for Renovate PRs (96 src files)
│ │ ├── renovate-changesets/ # Complex action: auto-generates changesets for Renovate PRs (125 src files)
│ │ ├── update-metadata/ # Simple action: generates/updates repo metadata (1 src file)
│ │ └── update-repository-settings/ # Action for updating repository settings (26 src files)
│ ├── workflows/ # 17 workflows: CI/CD, Fro Bot agent, Copilot setup
Expand Down
Loading