Skip to content

v1.2.1

Choose a tag to compare

@aaronmedina-dev aaronmedina-dev released this 23 Jan 12:59
· 40 commits to main since this release
9992b73

Release v1.2.1

Note: This release jumps from v1.1.1 to v1.2.1 because v1.2.0 was incorrectly set in feature branches instead of the release branch. To maintain proper release workflow integrity, we are releasing as v1.2.1.

New Features

URL Support for External Context

The --context flag now supports URLs in addition to local file paths:

  • Remote file fetching: Fetch raw text files from any URL
  • GitHub integration: Auto-converts GitHub blob URLs to raw URLs
  • Bitbucket integration: Full support for Bitbucket file URLs
  • Private repository access: Uses configured GitHub token and Bitbucket credentials for authenticated access
  • HTML to Markdown conversion: Automatically converts HTML documentation pages to Markdown using html2text
  • URL caching: Fetched URLs are cached locally at ~/.whatthepatch/url_cache/ with 1-hour TTL

Usage examples:

# Raw URL
wtp --review <PR_URL> -c https://example.com/docs/api.md

# GitHub file (auto-converts blob to raw)
wtp --review <PR_URL> -c https://github.com/org/repo/blob/main/types.ts

# Bitbucket file
wtp --review <PR_URL> -c https://bitbucket.org/workspace/repo/src/main/README.md

# Developer documentation (HTML auto-converted to Markdown)
wtp --review <PR_URL> -c https://docs.python.org/3/library/asyncio.html

Automatic Dependency Installation

  • After --update: New dependencies are automatically installed after updating the codebase
  • Startup detection: Missing dependencies are detected at startup with helpful error messages and installation instructions
  • Updated file list: The --update command now properly copies all engine files

New Dependency

  • html2text>=2024.2.26 - HTML to Markdown conversion

Full Changelog

v1.1.1...v1.2.1