Skip to content

[command] Add README metadata during composer sync (#57)#82

Merged
coisa merged 2 commits intomainfrom
codex/57-readme-composer-metadata
Apr 18, 2026
Merged

[command] Add README metadata during composer sync (#57)#82
coisa merged 2 commits intomainfrom
codex/57-readme-composer-metadata

Conversation

@coisa
Copy link
Copy Markdown
Contributor

@coisa coisa commented Apr 18, 2026

Summary

  • Update UpdateComposerJsonCommand to add Composer readme metadata when README.md exists and no readme value is declared.
  • Use ComposerJsonInterface for the existing metadata check and preserve existing readme values.
  • Add focused tests for adding, preserving, and skipping README metadata, and add the package's own readme field.

Testing

  • composer dev-tools tests -- --filter=UpdateComposerJsonCommandTest
  • composer dev-tools code-style
  • composer dev-tools tests
  • composer normalize --dry-run
  • php bin/dev-tools update-composer-json

Note: composer dev-tools was also attempted, but the reports stage failed in this local non-interactive environment with proc_open(/dev/tty): Failed to open stream: Device not configured.

Closes #57

@github-actions github-actions Bot added the enhancement New feature or request label Apr 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

@coisa coisa merged commit 320a423 into main Apr 18, 2026
2 checks passed
@coisa coisa deleted the codex/57-readme-composer-metadata branch April 18, 2026 06:18
github-actions Bot added a commit that referenced this pull request Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

Add README metadata during Composer JSON sync

1 participant