Skip to content

fix(release): Corrected create-post paths - #264

Open
sameerchore wants to merge 1 commit into
webpack:mainfrom
sameerchore:fix/create-post-paths-clean
Open

fix(release): Corrected create-post paths#264
sameerchore wants to merge 1 commit into
webpack:mainfrom
sameerchore:fix/create-post-paths-clean

Conversation

@sameerchore

@sameerchore sameerchore commented Sep 5, 2026

Copy link
Copy Markdown

Summary

This fixes two incorrect paths in scripts/release/create-post.mjs.

The script could not import the shared fetch utility because the relative path pointed to a non-existent location. Its output path also pointed outside the repository, so generated blog posts could not be written.

The paths now point to the correct files and pages/blog/posts/ directory.

What kind of change does this PR introduce?
fix

Did you add tests for your changes?
Affected modules checked with Node.js syntax validation, ESLint, and VS Code diagnostics. The old and corrected import paths tested directly.

Does this PR introduce a breaking change?
No. It only fixes release script paths & does not change any other files.

Use of AI
No

Fixes: #263

Summary by CodeRabbit

  • Bug Fixes
    • Corrected release-post generation so new release announcements are published to the intended blog location.
    • Improved the release publishing workflow’s authenticated content retrieval.

Signed-off-by: Sameer Chore <sameerchore5@gmail.com>
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
webpack-doc-kit Ready Ready Preview Sep 5, 2026 9:59pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 72e98a5d-0c48-4702-8f56-359db1cea789

📥 Commits

Reviewing files that changed from the base of the PR and between c0f8330 and 1163def.

📒 Files selected for processing (1)
  • scripts/release/create-post.mjs

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

Updated the fetchWithAuth import path in the release post script. Changed the generated release-note destination to pages/blog/posts.

Merge Risk: ⚪ Minimal · up to 1163d

The release-post script now loads its shared fetch helper and writes generated posts to the blog post directory consumed by the site. No current merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the correction of the release script paths.
Linked Issues check ✅ Passed The pull request updates both paths required by issue #263: the shared fetch utility import path and the generated post output path. These changes address the reported ERR_MODULE_NOT_FOUND and ENOENT …
Out of Scope Changes check ✅ Passed The changes are limited to the scoped file, scripts/release/create-post.mjs, and directly support the linked issue objectives. No unrelated changes are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(release): correct create-post import and output paths

1 participant