PR Spark
Version updated for https://github.com/ws2git/pr-spark to version v3.
- This action is used across all versions by ? repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
Major Architecture Refactoring & Enhanced Features
Core Improvements
- Complete TypeScript Migration: Rewritten from JavaScript to TypeScript for enhanced type safety and developer experience
- Modular Architecture: Implemented separation of concerns with dedicated service layers and configuration management
- Input Validation: Robust validation system for all parameters with comprehensive error handling
New Features
- Cross-Repository Support: Create pull requests across different repositories within the same organization
- Enhanced Input Parameters: Added
ownerandrepoinputs for flexible repository targeting - Improved Error Handling: Detailed error messages and validation for branch conflicts and invalid inputs
Technical Enhancements
- Octokit Integration: Leverages GitHub’s official REST API client for reliable PR operations
- Configuration Manager: Centralized input validation and configuration management
- Service Layer Architecture: Clean separation between business logic and GitHub API interactions
Breaking Changes
- New Required Inputs:
ownerandrepoparameters are now mandatory - Updated Output Structure: Consistent output formatting with proper TypeScript interfaces
Usage Example
- uses: ws2git/pr-spark@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
title: 'Automated PR'
source-branch: 'feature-branch'
dest-branch: 'main'
Upgrade Note: Review your workflows to include the new required owner and repo parameters for seamless migration to v3.