Skip to content

gh-tree@0.2.0

Choose a tag to compare

@mgks mgks released this 04 Jan 13:26
· 987 commits to main since this release

This release focuses on Robustness and User Experience. We've eliminated the frustration of guessing branch names (main vs master) and improved error clarity across the board.

Visit GitHubTree 馃殌

馃 Core & CLI (gh-tree)

  • Smart Branch Detection: If a requested branch does not exist, the tool now queries the repository metadata to find the actual default branch and retries the fetch automatically.
  • Feedback Loop: The CLI now informs you if it had to switch branches (e.g., 鈩癸笍 Branch 'main' not found. Switched to 'master').
  • Explicit Versioning: Added -v / --version flags to the CLI.
  • Error Handling: Replaced generic "API Error" messages with specific, actionable feedback (e.g., "Repository not found," "Bad Credentials").

馃寪 Web App

  • Auto-Correction UI: If the app detects a branch mismatch, it notifies the user via the status bar and updates the URL history to reflect the correct branch.
  • Cache Optimization: Fixed caching logic to ensure corrected branches are cached under their true names, preventing wasted API calls on subsequent visits.
  • Mobile Layout: Improved responsiveness for the file list view on smaller screens.

馃摝 Installation

npm install gh-tree@latest

Contributors

Full Changelog: 0.1.0...0.2.0