Skip to main content

GitHubPRCreator

A Haystack component for creating pull requests from a fork back to the original repository.

Basic Information

  • Type: haystack_integrations.github.src.haystack_integrations.components.connectors.github.pr_creator.GitHubPRCreator

Inputs

ParameterTypeDefaultDescription
issue_urlstrURL of the GitHub issue to link the PR to
titlestrTitle of the pull request
branchstrName of the branch in your fork where changes are implemented
basestrName of the branch in the original repo you want to merge into
bodystrAdditional content for the pull request description
draftboolFalseWhether to create a draft pull request

Outputs

ParameterTypeDefaultDescription
resultstrDictionary containing operation result

Overview

Work in Progress

Bear with us while we're working on adding pipeline examples and most common components connections.

A Haystack component for creating pull requests from a fork back to the original repository.

Uses the authenticated user's fork to create the PR and links it to an existing issue.

Usage Example

components:
GitHubPRCreator:
type: github.src.haystack_integrations.components.connectors.github.pr_creator.GitHubPRCreator
init_parameters:

Parameters

Init Parameters

These are the parameters you can configure in Pipeline Builder:

ParameterTypeDefaultDescription
github_tokenSecretSecret.from_env_var('GITHUB_TOKEN')GitHub personal access token for authentication (from the fork owner)
raise_on_failureboolTrueIf True, raises exceptions on API errors

Run Method Parameters

These are the parameters you can configure for the component's run() method. This means you can pass these parameters at query time through the API, in Playground, or when running a job. For details, see Modify Pipeline Parameters at Query Time.

ParameterTypeDefaultDescription
issue_urlstrURL of the GitHub issue to link the PR to
titlestrTitle of the pull request
branchstrName of the branch in your fork where changes are implemented
basestrName of the branch in the original repo you want to merge into
bodystrAdditional content for the pull request description
draftboolFalseWhether to create a draft pull request