Skip to content

fix: rebuild dist so action uses GitHub Models endpoint - #4

Open
aryanorastar wants to merge 1 commit into
AOSSIE-Org:mainfrom
aryanorastar:fix/rebuild-stale-dist-azure-endpoint
Open

fix: rebuild dist so action uses GitHub Models endpoint#4
aryanorastar wants to merge 1 commit into
AOSSIE-Org:mainfrom
aryanorastar:fix/rebuild-stale-dist-azure-endpoint

Conversation

@aryanorastar

@aryanorastar aryanorastar commented Aug 16, 2026

Copy link
Copy Markdown

Summary

Fixes #2

action.yml points at dist/index.js, but that bundle was stale: it still called the deprecated Azure Models endpoint (models.inference.ai.azure.com) while src/agent.js already targets models.github.ai/inference/chat/completions. That left prompt / advanced modes broken for anyone running the published action.

This PR only rebuilds dist/ from current src/ (npm ci && npm run build / ncc).

Verification

  • Before rebuild: dist/index.js contained https://models.inference.ai.azure.com/chat/completions
  • After rebuild: that Azure URL is gone; https://models.github.ai/inference/chat/completions is present
  • npm test — 15/15 passed

Honest gaps

  • Did not run the action end-to-end against a live GitHub Models token / real repo workflow (no token in this environment)

action.yml runs dist/index.js, which was still calling the deprecated
Azure Models URL while src already targeted models.github.ai. Rebuild
with ncc so prompt/advanced modes match current source.
@github-actions github-actions Bot added the javascript JavaScript/TypeScript code changes label Aug 16, 2026
@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5ea070e5-d2a4-4ad4-9c66-e7ce359ea25c


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.

@github-actions github-actions Bot added size/L Large PR (201-500 lines changed) first-time-contributor First PR of an external contributor pending-coderabbit-review labels Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-time-contributor First PR of an external contributor javascript JavaScript/TypeScript code changes pending-coderabbit-review size/L Large PR (201-500 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: dist/index.js is stale — calls deprecated Azure endpoint, breaking prompt/advanced modes entirely

1 participant