Command-line tool for managing labels in GitHub repositories with AI-powered suggestions using OpenAI.
GitHub Labels CLI is a powerful command-line tool designed to streamline label management across GitHub repositories. Built with TypeScript and the Octokit REST API, it provides an intuitive interface for organizing and maintaining repository labels at scale.
The tool features an interactive mode that guides users through common label management tasks, including fetching repository lists, adding/removing labels, and creating custom label templates. Users can save label configurations and reuse them across multiple repositories, ensuring consistency across projects.
One of the standout features is AI-powered label suggestions for pull requests. Using OpenAI API, the tool analyzes PR titles, descriptions, changed files, and code context to automatically suggest appropriate labels with confidence scores. It can also generate comprehensive PR descriptions, making it invaluable for large teams looking to automate workflow categorization and maintain consistent documentation.
GitHub Labels CLI follows a modular command-based architecture using Commander.js for command routing and argument parsing. The tool integrates with GitHub API via Octokit for repository and label operations, and OpenAI API for intelligent label suggestions. Interactive prompts are powered by Inquirer, providing a user-friendly CLI experience. The codebase uses Zod for runtime validation of API responses and user input, ensuring type safety throughout the application.
Solution: Implemented OpenAI API integration that analyzes PR context including title, description, changed files, and code diff to provide relevant label suggestions with confidence scores
Solution: Used Octokit REST client with proper error handling and rate limiting, implementing retry logic for failed requests and clear error messages for users
Solution: Built a template system that allows users to export labels from any repository and save them as JSON templates for quick application to other repositories
Solution: Combined Inquirer for interactive prompts, Chalk for colored output, and Ora for loading indicators to create an intuitive and visually appealing CLI interface
Professional car detailing and furniture cleaning service website offering comprehensive cleaning solutions with modern Polish interface.
Professional electrical and construction services company website showcasing comprehensive solutions with modern Polish interface.
A streaming platform for finding and watching anime series and movies with Polish subtitles.