Skip to content

Conversation

@DevelopmentCats
Copy link
Contributor

Description

Add CI mode to version bump script to output Pass or Fail with a less verbose comment when it fails

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Related Issues

Copilot AI review requested due to automatic review settings December 17, 2025 20:56
@DevelopmentCats DevelopmentCats added the version:patch Add to PRs requiring a patch version upgrade label Dec 17, 2025
Copy link
Contributor

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 enhances the version bump automation by adding a CI mode to the version bump script that produces cleaner, less verbose output when validation fails. The changes streamline the GitHub Actions workflow and improve the developer experience when version bumps are required.

Key changes:

  • Adds --ci flag to version-bump.sh script for automated validation mode
  • Simplifies CI workflow by removing complex output handling and using direct script execution
  • Optimizes formatting to only process modified README files instead of the entire repository

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
registry/coder/modules/code-server/main.tf Test comment added (should be removed before merge)
registry/coder/modules/code-server/README.md Version references updated from 1.4.1 to 1.4.2
.github/workflows/version-bump.yaml Simplified workflow to use CI mode, cleaner failure comment
.github/scripts/version-bump.sh Added CI mode flag, optimized formatting, updated loop condition

@DevelopmentCats DevelopmentCats added version:patch Add to PRs requiring a patch version upgrade and removed version:patch Add to PRs requiring a patch version upgrade labels Dec 17, 2025
@github-actions
Copy link
Contributor

❌ Version Bump Required

One or more modules in this PR need their versions updated.

To fix this:

  1. Run the version bump script locally:
    ./.github/scripts/version-bump.sh patch
  2. Commit the changes:
    git add . && git commit -m "chore: bump module versions (patch)"
  3. Push your changes

The CI will automatically re-run once you push the updated versions.

@DevelopmentCats DevelopmentCats force-pushed the cat/version-bump-ci-mode branch from 2e1fe5d to 862bd9a Compare December 17, 2025 21:18
@DevelopmentCats DevelopmentCats added version:patch Add to PRs requiring a patch version upgrade and removed version:patch Add to PRs requiring a patch version upgrade labels Dec 17, 2025
@DevelopmentCats DevelopmentCats force-pushed the cat/version-bump-ci-mode branch from 862bd9a to aebdfb7 Compare December 17, 2025 21:21
@DevelopmentCats DevelopmentCats added version:patch Add to PRs requiring a patch version upgrade and removed version:patch Add to PRs requiring a patch version upgrade labels Dec 17, 2025
@github-actions
Copy link
Contributor

Version Bump Required

One or more modules in this PR need their versions updated.

To fix this:

  1. Run the version bump script locally:
    ./.github/scripts/version-bump.sh patch
  2. Commit the changes:
    git add . && git commit -m "chore: bump module versions (patch)"
  3. Push your changes

The CI will automatically re-run once you push the updated versions.

@DevelopmentCats DevelopmentCats removed the version:patch Add to PRs requiring a patch version upgrade label Dec 17, 2025
- Add --ci flag to version-bump.sh for CI validation
- CI mode runs version bump, formats files, then checks git diff
- Exit 0 if no changes (versions already correct), exit 1 if changes needed
- Update workflow to use --ci flag and post cleaner failure comment
- Fix awk script to avoid adding extra blank lines
- Run prettier on modified README files for consistent formatting
Copy link
Contributor

@david-fraley david-fraley left a comment

Choose a reason for hiding this comment

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

stamping approval

@DevelopmentCats DevelopmentCats merged commit 77a3e74 into main Dec 17, 2025
4 checks passed
@DevelopmentCats DevelopmentCats deleted the cat/version-bump-ci-mode branch December 17, 2025 21:31
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