Skip to content

Rename install.ps1 to bootstrap.ps1 and update URLs#406

Merged
gnh1201 merged 1 commit intomasterfrom
dev
Apr 18, 2026
Merged

Rename install.ps1 to bootstrap.ps1 and update URLs#406
gnh1201 merged 1 commit intomasterfrom
dev

Conversation

@gnh1201
Copy link
Copy Markdown
Owner

@gnh1201 gnh1201 commented Apr 18, 2026

Summary by Sourcery

Rename the PowerShell one-click script to bootstrap.ps1 and update its documented remote execution URLs to the new hosting location.

Enhancements:

  • Rebrand the WelsonJS one-click PowerShell script from an installer to a bootstrap script in comments and filename.
  • Update usage examples to reference the new blob storage URL for fetching the bootstrap script.

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai bot commented Apr 18, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Renames the PowerShell entry script from install.ps1 to bootstrap.ps1 and updates all in-script documentation and example URLs to point to the new blob storage location and filename.

Flow diagram for updated bootstrap.ps1 download and execution URL

flowchart TD
  A[User runs irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1] --> B[PowerShell downloads bootstrap.ps1 from blob storage]
  B --> C[Script content is piped to iex]
  C --> D[bootstrap.ps1 starts WelsonJS installation]

  A2[User runs irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1 -dev main] --> B
  A3[User runs irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1 -dev dev] --> B
Loading

File-Level Changes

Change Details Files
Rename the PowerShell installer script and update documentation usage URLs to the new hosting location.
  • Change script header title from One-Click Installer (install.ps1) to One-Click Bootstrap (bootstrap.ps1)
  • Update example irm
iex usage lines to reference catswords.blob.core.windows.net/welsonjs/bootstrap.ps1 instead of welson.js.org/install.ps1
  • Keep existing copyright, license, and branch configuration comments intact

  • 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

    @coderabbitai
    Copy link
    Copy Markdown
    Contributor

    coderabbitai bot commented Apr 18, 2026

    Warning

    Rate limit exceeded

    @gnh1201 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 42 minutes and 44 seconds before requesting another review.

    Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 42 minutes and 44 seconds.

    ⌛ How to resolve this issue?

    After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

    We recommend that you space out your commits to avoid hitting the rate limit.

    🚦 How do rate limits work?

    CodeRabbit enforces hourly rate limits for each developer per organization.

    Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

    Please see our FAQ for further information.

    ℹ️ Review info
    ⚙️ Run configuration

    Configuration used: defaults

    Review profile: CHILL

    Plan: Pro

    Run ID: beb962e5-4f21-4ff8-970f-efad64d8e02f

    📥 Commits

    Reviewing files that changed from the base of the PR and between 3a1b75c and ada9a97.

    📒 Files selected for processing (1)
    • bootstrap.ps1
    ✨ Finishing Touches
    🧪 Generate unit tests (beta)
    • Create PR with unit tests
    • Commit unit tests in branch dev

    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.

    @qodo-code-review
    Copy link
    Copy Markdown
    Contributor

    Review Summary by Qodo

    Rename install script to bootstrap and update URLs

    ✨ Enhancement

    Grey Divider

    Walkthroughs

    Description
    • Rename install.ps1 to bootstrap.ps1 for clarity
    • Update download URLs from welson.js.org to Azure Blob Storage
    • Update script header and usage documentation
    
    Diagram
    flowchart LR
      A["install.ps1"] -- "rename" --> B["bootstrap.ps1"]
      C["welson.js.org URLs"] -- "migrate to" --> D["Azure Blob Storage URLs"]
      B -- "includes" --> E["Updated documentation"]
    
    Loading

    Grey Divider

    File Changes

    1. bootstrap.ps1 ⚙️ Configuration changes +4/-4

    Rename and update bootstrap script URLs

    • Renamed file from install.ps1 to bootstrap.ps1
    • Updated script header comment from "One-Click Installer" to "One-Click Bootstrap"
    • Changed download URLs from https://welson.js.org/install.ps1 to
     https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1
    • Updated all usage examples in comments to reflect new URL and filename
    

    bootstrap.ps1


    Grey Divider

    Qodo Logo

    @qodo-code-review
    Copy link
    Copy Markdown
    Contributor

    qodo-code-review bot commented Apr 18, 2026

    Code Review by Qodo

    🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0)

    Grey Divider


    Action required

    1. Broken -dev invocation 🐞 Bug ≡ Correctness
    Description
    The updated usage examples pipe the script into iex -dev ..., but -dev is parsed as a parameter
    to Invoke-Expression (which doesn’t accept it), so the command errors before bootstrap.ps1
    executes and users cannot select a branch.
    
    Code

    bootstrap.ps1[R8-9]

    +#   irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1 | iex -dev main
    +#   irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1 | iex -dev dev
    Evidence
    The header advertises ... | iex -dev main/dev, while the script itself declares a
    param([string]$dev = $DefaultBranch) parameter and does not use $args as a fallback. Therefore,
    the only intended way to set the branch is via proper PowerShell parameter binding to the script,
    which does not happen with iex -dev ... (the -dev is bound to iex).
    

    bootstrap.ps1[7-9]
    bootstrap.ps1[15-18]
    bootstrap.ps1[1-105]

    Agent prompt
    The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
    
    ### Issue description
    `bootstrap.ps1` documents `irm <url> | iex -dev main` / `... -dev dev`, but `-dev` is not a valid parameter for `Invoke-Expression`, so the command fails before the downloaded script text executes.
    
    ### Issue Context
    The script defines a `param([string]$dev = $DefaultBranch)` parameter and does not use `$args`, so callers must invoke the downloaded content as a ScriptBlock and pass `-dev` to that ScriptBlock.
    
    ### Fix
    Update the header usage examples to a working invocation pattern, e.g.:
    ```powershell
    # default
    irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1 | iex
    
    # with branch selection
    & ([ScriptBlock]::Create((irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1))) -dev main
    & ([ScriptBlock]::Create((irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1))) -dev dev
    ```
    (Using `Invoke-RestMethod` explicitly instead of `irm` is also fine.)
    
    ### Fix Focus Areas
    - bootstrap.ps1[6-18]
    

    ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


    Grey Divider

    ⓘ The new review experience is currently in Beta. Learn more

    Grey Divider

    Qodo Logo

    @what-the-diff
    Copy link
    Copy Markdown

    what-the-diff bot commented Apr 18, 2026

    PR Summary

    • Modification of Script File
      The script file was previously named as install.ps1, but now has been renamed to bootstrap.ps1.

    • Update on Header Comment
      The header comment of the script file has been revised to indicate the new purpose of the script being “WelsonJS One-Click Bootstrap”.

    • Instruction Changes
      Instructions have been altered to direct users to a new URL for the newly named bootstrap script instead of the old script URL. It points to the most updated and effective script now. This change ensures users are not confused or directed to outdated resources.

    @sonarqubecloud
    Copy link
    Copy Markdown

    Copy link
    Copy Markdown
    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 reviewed your changes and they look great!


    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.

    Comment thread bootstrap.ps1
    Comment on lines +8 to +9
    # irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1 | iex -dev main
    # irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1 | iex -dev dev
    Copy link
    Copy Markdown
    Contributor

    Choose a reason for hiding this comment

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

    Action required

    1. Broken -dev invocation 🐞 Bug ≡ Correctness

    The updated usage examples pipe the script into iex -dev ..., but -dev is parsed as a parameter
    to Invoke-Expression (which doesn’t accept it), so the command errors before bootstrap.ps1
    executes and users cannot select a branch.
    
    Agent Prompt
    ### Issue description
    `bootstrap.ps1` documents `irm <url> | iex -dev main` / `... -dev dev`, but `-dev` is not a valid parameter for `Invoke-Expression`, so the command fails before the downloaded script text executes.
    
    ### Issue Context
    The script defines a `param([string]$dev = $DefaultBranch)` parameter and does not use `$args`, so callers must invoke the downloaded content as a ScriptBlock and pass `-dev` to that ScriptBlock.
    
    ### Fix
    Update the header usage examples to a working invocation pattern, e.g.:
    ```powershell
    # default
    irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1 | iex
    
    # with branch selection
    & ([ScriptBlock]::Create((irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1))) -dev main
    & ([ScriptBlock]::Create((irm https://catswords.blob.core.windows.net/welsonjs/bootstrap.ps1))) -dev dev
    ```
    (Using `Invoke-RestMethod` explicitly instead of `irm` is also fine.)
    
    ### Fix Focus Areas
    - bootstrap.ps1[6-18]
    

    ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

    @gnh1201 gnh1201 merged commit 7bc8a56 into master Apr 18, 2026
    8 of 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