GitHub - Create PR
Create a new Pull Request in a repository
GitHub: Create PR
1Description
The GitHub: Create PR node allows your Deforge workflows to automatically open a Pull Request, proposing to merge changes from one branch (the head) into another (the base). It authenticates via your connected GitHub account, ensuring the PR is created seamlessly without manual intervention.
This node is a cornerstone for autonomous developer workflows. When passed as a Tool to an LLM node, your AI agents can independently finalize their work by opening a fully formatted Pull Request—complete with an intelligent title and Markdown description detailing the changes they made—ready for human review.
Common Use Cases
- Autonomous Feature Development: Chaining the GitHub: Update File node to commit code changes to a new branch, and then using this node to automatically open a Pull Request back to
main. - Automated Dependency Updates: Triggering a workflow on a cron schedule to check for outdated libraries, creating a branch with the updated
package.json, and using this node to submit the update as a PR. - Content & Documentation Workflows: Allowing non-technical team members to submit content updates via a Slack or Discord trigger, which an agent then translates into a markdown file commit and a subsequent Pull Request for the engineering team to approve.
Inputs
The input connections this node accepts:
NameDescriptionTypeFlowThe flow of the workflowFlowRepositoryRepository (e.g., octocat/Hello-World)TextTitleTitle of the Pull RequestTextBodyDescription/Body of the PR (Markdown supported)TextHead BranchThe name of the branch where your changes are (e.g., 'feature-fix')TextBase BranchThe name of the branch you want to merge into (e.g., 'main')TextOutputs
The output connections this node provides:
NameDescriptionTypeFlowThe Flow to continueFlowPR URLThe URL of the created Pull RequestTextPR NumberThe Number of the created Pull RequestTextToolThe tool version of this node, to be used by LLMsToolFields
The configurable fields this node provides:
NameDescriptionTypeRepositoryRepository (e.g., owner/repo)Value: ``TextTitlePR TitleValue:Automated PR from Deforge AgentTextBodyDescription/Body of the PR (Markdown supported)Value: ``TextAreaHead BranchSource branch with changesValue: ``TextBase BranchTarget branch to merge intoValue: mainTextGitHubConnect your GitHub accountDefaultValue: ``socialLast updated on