What’s New
- Initial release of the PR Creator Action for GitHub Actions.
- Enables automated creation of Pull Requests between any two branches using the GitHub CLI (
gh). - Accepts configurable inputs for PR title, body, source branch, and destination branch.
- Includes a ready-to-use composite action (
action.yml) and shell script. - Comprehensive documentation with usage instructions and requirements.
Usage Example
- uses: ws2git/gh-pr-action@v1
env:
GH_TOKEN: ${{ github.token }}
with:
title: "Automated PR: feature/test to develop"
body: "This Pull Request was created automatically using the PR Creator Action."
source_branch: "feature/test"
dest_branch: "develop"Requirements
- The GitHub CLI (
gh) must be available in the runner environment (Ubuntu runners already include it). - The workflow must set the
GH_TOKENenvironment variable for authentication (use${{ github.token }}). - Both source and destination branches must exist in the repository.
Thank you for using and sharing feedback to improve this action!