Skip to content

Fully rename contents of the repository from gh-download-pull-request to gh-load-pull-request#12

Merged
konard merged 4 commits intomainfrom
issue-11-3d572a00ee97
Dec 26, 2025
Merged

Fully rename contents of the repository from gh-download-pull-request to gh-load-pull-request#12
konard merged 4 commits intomainfrom
issue-11-3d572a00ee97

Conversation

@konard
Copy link
Member

@konard konard commented Dec 26, 2025

Summary

This PR completes the package rename from gh-download-pull-request to gh-load-pull-request, making all internal references consistent with the NPM package name and repository name.

Changes Made

  • Renamed main script file: src/gh-download-pull-request.mjssrc/gh-load-pull-request.mjs
  • Updated package.json:
    • main entry to point to new file name
    • bin entry to use new command name gh-load-pull-request
    • Repository, bugs, and homepage URLs to use new repository name
  • Updated README.md: All command examples, installation instructions, and URLs updated
  • Updated CHANGELOG.md: Title changed to gh-load-pull-request
  • Updated source code: User-Agent header in HTTP requests
  • Updated version.mjs: Script path reference and console output
  • Updated scripts: PACKAGE_NAME constants in validate-changeset.mjs and format-release-notes.mjs
  • Updated tests: File reference and describe block name in cli.test.mjs
  • Updated examples: Repository URLs in examples/pr-2.md
  • Regenerated package-lock.json: Reflects new package name throughout

Testing

  • All 4 CLI tests pass
  • ESLint passes with no warnings
  • Prettier formatting verified
  • No remaining references to old name gh-download-pull-request in codebase

Related Issue

Fixes #11


🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #11
@konard konard self-assigned this Dec 26, 2025
- Rename main script file to gh-load-pull-request.mjs
- Update CLI command name in package.json bin entry
- Update repository URLs (repository, bugs, homepage)
- Update User-Agent header to reflect new package name
- Update README.md with all updated command examples
- Update CHANGELOG.md title
- Update internal script references in version.mjs
- Update PACKAGE_NAME constants in validation and release scripts
- Update test file references and describe block name
- Regenerate package-lock.json with new package name

Fixes #11

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Fully rename contents of the repository from gh-download-pull-request to gh-load-pull-request Fully rename contents of the repository from gh-download-pull-request to gh-load-pull-request Dec 26, 2025
@konard konard marked this pull request as ready for review December 26, 2025 20:24
@konard
Copy link
Member Author

konard commented Dec 26, 2025

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $4.369035 USD
  • Calculated by Anthropic: $2.703809 USD
  • Difference: $-1.665227 (-38.11%)
    📎 Log file uploaded as GitHub Gist (584KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard
Copy link
Member Author

konard commented Dec 26, 2025

Test on Windows should work like on other platforms, it should be fixed.

@konard konard marked this pull request as draft December 26, 2025 21:19
@konard
Copy link
Member Author

konard commented Dec 26, 2025

🤖 AI Work Session Started

Starting automated work session at 2025-12-26T21:19:35.173Z

The PR has been converted to draft mode while work is in progress.

This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback.

The test "Invalid PR format should show helpful error" was timing out
on Windows with bun (20+ seconds) because it attempted to fetch the
GitHub token from gh CLI before validating the PR format.

On Windows, the gh auth token command can be slow or hang in certain
environments, causing the test to exceed its 20 second timeout even
though it should fail fast for invalid input.

This fix reorders the validation logic to:
1. Parse and validate PR format first
2. Exit immediately with helpful error if format is invalid
3. Only fetch gh CLI token if format is valid

This ensures the test fails fast (~100ms) instead of timing out,
while maintaining the same user experience for valid PR inputs.

Fixes the failing "Test (bun on windows-latest)" CI check.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard marked this pull request as ready for review December 26, 2025 21:24
@konard
Copy link
Member Author

konard commented Dec 26, 2025

✅ Windows Test Timeout Fixed

Problem Identified

The test "Invalid PR format should show helpful error" was timing out on Windows with bun, failing after 20+ seconds when it should complete in ~100ms.

Root Cause

The script was attempting to fetch the GitHub token from gh CLI before validating the PR format. On Windows, the gh auth token command can be slow or hang in certain environments, causing unnecessary delays even for invalid input that should fail immediately.

Solution

Reordered the validation logic to:

  1. Parse and validate PR format first
  2. Exit immediately with helpful error if format is invalid
  3. Only fetch gh CLI token if format is valid

Results

✅ All CI checks now passing, including:

  • Test (bun on windows-latest) - now passes consistently
  • All other platform/runtime combinations continue to pass
  • ESLint and Prettier checks pass
  • Local tests verified before push

The fix maintains the same user experience for valid PR inputs while ensuring fast failure for invalid formats across all platforms.

Commits

  • 05228ca Fix test timeout on Windows by validating PR format before token fetch

PR is now ready for review with merge status: CLEAN 🎉

@konard
Copy link
Member Author

konard commented Dec 26, 2025

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $2.124381 USD
  • Calculated by Anthropic: $1.113946 USD
  • Difference: $-1.010435 (-47.56%)
    📎 Log file uploaded as GitHub Gist (522KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard konard merged commit 8f502f3 into main Dec 26, 2025
14 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.

Fully rename contents of the repository from gh-download-pull-request to gh-load-pull-request

1 participant