Skip to content

Conversation

@chr-hertel
Copy link
Member

@chr-hertel chr-hertel commented Dec 19, 2025

Q A
Bug fix? no
New feature? no
Docs? no
Issues Fix #...
License MIT

Add a new bump script at the repository root that updates version constraints for all symfony/ai-* dependencies across the monorepo.

Features

  1. Accepts version constraint as argument - Examples: ^0.1, ~0.1.0, @dev

  2. Scans all relevant directories - Automatically finds composer.json files in:

    • src/ (all components)
    • demo/
    • examples/
    • Including bridges in src/*/src/Bridge/*
  3. Updates symfony/ai-* dependencies - Changes version constraints in both:

    • require section
    • require-dev section
  4. Helpful CLI output showing:

    • Number of composer.json files found
    • Summary of files saved with change counts
    • Total number of dependency constraints updated

Usage

# Show help
./bump

# Bump all symfony/ai-* dependencies to ^0.1
./bump "^0.1"

# Use @dev version
./bump "@dev"

# Use specific version
./bump "~0.1.0"

Similar to the existing link script, this tool helps maintain consistent versioning across all components during releases.

image

@carsonbot carsonbot changed the title Add bump script for updating symfony/ai-* dependency versions Add bump script for updating symfony/ai-* dependency versions Dec 19, 2025
@chr-hertel chr-hertel force-pushed the feature/bump-script branch 3 times, most recently from 929a408 to 53aec0e Compare December 19, 2025 14:56
@chr-hertel chr-hertel requested a review from Copilot December 19, 2025 14:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new bump script to automate version constraint updates for symfony/ai-* dependencies across the monorepo. The script accepts a version constraint as an argument and updates all matching dependencies in composer.json files throughout the repository.

Key Changes:

  • New executable PHP script that scans src/, demo/, and examples/ directories for composer.json files
  • Updates symfony/ai-* package versions in both require and require-dev sections
  • Provides detailed CLI output showing the number of files processed and updates applied

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add a new `bump` script at the repository root that updates version
constraints for all symfony/ai-* dependencies across the monorepo.

Features:
- Accepts version constraint as argument (e.g., ^0.1, ~0.1.0, @dev)
- Scans src/, demo/, and examples/ directories for composer.json files
- Updates symfony/ai-* packages in both require and require-dev sections
- Provides helpful CLI output showing all applied changes
- Shows summary with total updates and next steps

Usage:
  ./bump ^0.1
  ./bump @dev

Similar to the existing `link` script, this tool helps maintain
consistent versioning across all components during releases.
@chr-hertel
Copy link
Member Author

@OskarStark is that basically what you meant? 🤔

@OskarStark
Copy link
Contributor

Thank you @chr-hertel.

@OskarStark OskarStark merged commit c3abeb1 into symfony:main Dec 20, 2025
315 checks passed
@chr-hertel chr-hertel deleted the feature/bump-script branch December 20, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants