Skip to content

Conversation

@dlabrecq
Copy link
Contributor

@dlabrecq dlabrecq commented Jan 7, 2026

Renamed release scripts to help clarify functionality

Summary by Sourcery

Rename release-related scripts and npm commands for clearer branch-based deployment workflows across workspaces.

New Features:

  • Add branch-specific deploy and merge npm scripts for HCCM and ROS apps.
  • Introduce a top-level branch:release npm script for coordinated branch releases.

Enhancements:

  • Rename deploy/merge scripts and their metadata to use branch-focused naming for improved clarity.
  • Update release tooling to invoke the newly named branch deploy/merge shell scripts.

@dlabrecq dlabrecq requested review from a team as code owners January 7, 2026 00:07
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Jan 7, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Renames release and branch management scripts and associated npm script entries to use a clearer branch:* naming convention, and updates the central release script to call the newly named shell scripts.

Flow diagram for updated branch release and deploy scripts

flowchart LR
  Dev["Developer runs npm scripts"]

  subgraph RootPackage["Root package.json"]
    BR["script branch:release -> node scripts/branch-release.js"]
  end

  subgraph HCCMPackage["koku-ui-hccm package.json"]
    HDS["script branch:deploy:stage -> sh ../../scripts/branch-deploy.sh -s"]
    HDP["script branch:deploy:prod -> sh ../../scripts/branch-deploy.sh -p"]
    HMS["script branch:merge:stage -> sh ../../scripts/branch-merge.sh -s"]
    HMP["script branch:merge:prod -> sh ../../scripts/branch-merge.sh -p"]
  end

  subgraph ROSPackage["koku-ui-ros package.json"]
    RDS["script branch:deploy:stage -> sh ../../scripts/deploy-branch.sh -q"]
    RDP["script branch:deploy:prod -> sh ../../scripts/deploy-branch.sh -r"]
    RMS["script branch:merge:stage -> sh ../../scripts/merge-branch.sh -q"]
    RMP["script branch:merge:prod -> sh ../../scripts/merge-branch.sh -r"]
  end

  subgraph ScriptsDir["scripts directory"]
    BRJS["branch-release.js"]
    BDSh["branch-deploy.sh"]
    BMSh["branch-merge.sh"]
    DSh["deploy-branch.sh"]
    MSh["merge-branch.sh"]
  end

  Dev --> BR
  Dev --> HDS
  Dev --> HDP
  Dev --> HMS
  Dev --> HMP
  Dev --> RDS
  Dev --> RDP
  Dev --> RMS
  Dev --> RMP

  BR --> BRJS
  BRJS --> BDSh
  BRJS --> BMSh

  HDS --> BDSh
  HDP --> BDSh
  HMS --> BMSh
  HMP --> BMSh

  RDS --> DSh
  RDP --> DSh
  RMS --> MSh
  RMP --> MSh
Loading

File-Level Changes

Change Details Files
Adopt clearer branch deploy/merge npm script names in the HCCM app and keep behavior identical.
  • Add new npm scripts `branch:deploy:stage
prodandbranch:merge:stage
Adopt clearer branch deploy/merge npm script names in the ROS app and keep behavior identical.
  • Add new npm scripts `branch:deploy:stage
prodandbranch:merge:stage
Rename the top-level release npm script and underlying Node script to use the branch:release naming and updated shell script names.
  • Add a new root npm script branch:release pointing to scripts/branch-release.js and remove the older release script entry
  • Update root scripts-info to document branch:release instead of release with identical description
  • Rename scripts/release.js to scripts/branch-release.js and adjust it to call branch-deploy.sh or branch-merge.sh instead of the previous script names
package.json
scripts/branch-release.js

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @dlabrecq, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refactors the project's release scripting by renaming several key shell scripts and their corresponding npm script aliases. The primary goal is to improve the clarity and consistency of these scripts, making it more explicit that they are designed for branch-specific operations related to deployment and merging. This change aims to enhance the maintainability and understanding of the project's release process for all developers.

Highlights

  • Script Renaming for Clarity: Several core release-related shell scripts, including deploy-branch.sh, merge-branch.sh, and release.js, have been renamed to incorporate 'branch' into their names, such as branch-deploy.sh, branch-merge.sh, and branch-release.js, to enhance clarity regarding their functionality.
  • Package.json Updates: The package.json files for koku-ui-hccm and the root project have been updated to reflect these new script names in their scripts and scripts-info sections, ensuring consistency across the project.
  • Internal Script Reference Correction: The branch-release.js script (formerly release.js) has been modified to correctly call the newly renamed branch-deploy.sh and branch-merge.sh shell scripts, maintaining proper execution flow.
  • Potential Inconsistency in ROS Package: It has been observed that apps/koku-ui-ros/package.json updates its npm script aliases (e.g., branch:deploy:stage) but still references the old script filenames (deploy-branch.sh and merge-branch.sh) in its commands, which could lead to broken commands as the underlying files have been renamed.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location> `apps/koku-ui-ros/package.json:15-18` </location>
<code_context>
     "npm": ">=11.6.2"
   },
   "scripts": {
+    "branch:deploy:stage": "sh ../../scripts/deploy-branch.sh -q",
+    "branch:deploy:prod": "sh ../../scripts/deploy-branch.sh -r",
+    "branch:merge:stage": "sh ../../scripts/merge-branch.sh -q",
+    "branch:merge:prod": "sh ../../scripts/merge-branch.sh -r",
     "build": "npm run build:prod",
     "build:prod": "fec build",
</code_context>

<issue_to_address>
**issue (bug_risk):** Align ROS branch scripts with the new `branch-*.sh` naming used elsewhere.

In `koku-ui-hccm`, the new scripts call `../../scripts/branch-deploy.sh` / `branch-merge.sh`, and `scripts/branch-release.js` expects those names as well. Here, ROS still calls `deploy-branch.sh` / `merge-branch.sh`. This mismatch likely breaks either ROS or HCCM/release tooling, so the script names should be standardized across both apps and the release scripts.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors release scripts by renaming them for better clarity and updating the corresponding npm commands. The changes are well-contained and improve the maintainability of the release process. However, I found a critical issue where one of the package.json files was not fully updated with the new script names, which would cause the build to fail. Please see the detailed comment.

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.64%. Comparing base (5987a57) to head (011a83b).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4826   +/-   ##
=======================================
  Coverage   86.64%   86.64%           
=======================================
  Files         482      482           
  Lines        9231     9231           
  Branches     2240     2239    -1     
=======================================
  Hits         7998     7998           
- Misses       1162     1163    +1     
+ Partials       71       70    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dlabrecq dlabrecq merged commit d2f5705 into project-koku:main Jan 7, 2026
10 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.

1 participant