Skip to content

Conversation

@kolipakakondal
Copy link
Collaborator

@kolipakakondal kolipakakondal commented Oct 9, 2025

Description

Please include a summary of the change and which issue is fixed.

Fixes # (IEP-XXX)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • ESP-IDF Version:
  • OS (Windows,Linux and macOS):

Dependent components impacted by this PR:

  • Component 1
  • Component 2

Checklist

  • PR Self Reviewed
  • Applied Code formatting
  • Added Documentation
  • Added Unit Test
  • Verified on all platforms - Windows,Linux and macOS

Summary by CodeRabbit

  • Chores
    • Added an automated version-bump workflow in CI. It validates the version format, updates all relevant project metadata, and verifies changes before proceeding.
    • Supports two modes: creating a pull request with a summary of updates, or committing directly to the default branch.
    • Improves release reliability by reducing manual steps and preventing invalid versions.
    • Provides clearer traceability for version changes through consistent automation and optional PRs.

@coderabbitai
Copy link

coderabbitai bot commented Oct 9, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Adds a new GitHub Actions workflow (.github/workflows/bump-version.yml) to validate a semantic version input, update version strings across specified project files via sed, verify changes, and either open a PR on a new branch or push directly to master based on an input flag.

Changes

Cohort / File(s) Summary
CI: Version bump workflow
.github/workflows/bump-version.yml
Introduces “Bump Version” workflow with inputs (new_version, create_pr). Checks out repo, validates X.Y.Z format, reads current version from releng/.../pom.xml, updates version in MANIFEST.MF, feature.xml, releng pom.xml, and idf.product via sed, verifies updates, then creates PR on a new branch or pushes to master.

Sequence Diagram(s)

sequenceDiagram
    actor Dev as Developer
    participant GH as GitHub Actions (Workflow)
    participant Repo as Repository
    participant Files as Versioned Files
    participant PR as Pull Request

    Dev->>GH: Dispatch workflow with inputs (new_version, create_pr)
    GH->>Repo: Checkout (full history)
    GH->>GH: Validate new_version (X.Y.Z)
    GH->>Repo: Read current version from releng/.../pom.xml
    GH->>Files: Update version in MANIFEST.MF, feature.xml, pom.xml, idf.product
    GH->>GH: Verify updated patterns in all targets
    alt create_pr == true
        GH->>Repo: Create branch bump-version-${NEW_VERSION}
        GH->>Repo: Commit and push changes
        GH->>PR: Open PR with summary
    else create_pr == false
        GH->>Repo: Commit to master and push
    end
    note over GH,Repo: Abort on invalid version or failed verification
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • sigmaaa
  • alirana01
  • AndriiFilippov

Poem

Hop, hop—tag the dots three-fold,
X.Y.Z, the tale is told.
Branches sprout, a PR blooms,
Sed sweeps through the versioned rooms.
Drums of CI softly thrum—
“Bump!” goes the number—here I come. 🐇✨

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch IEP-1641

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 27c8acf and d59b543.

📒 Files selected for processing (1)
  • .github/workflows/bump-version.yml (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kolipakakondal kolipakakondal merged commit 723d194 into master Oct 9, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants