Skip to main content

Harness GitOps PR Pipelines Basics

Harness GitOps PR (Pull Request) Pipelines provide first-class support for modifying existing GitOps Applications or creating new ones through automation. With PR Pipelines, you can manage Git-based deployments in a structured and auditable way, ensuring your infrastructure and application updates go through version-controlled changes.


What are PR Pipelines?

A PR Pipeline in Harness GitOps is a pipeline designed to:

  • Create or update a GitOps Application (or multiple Applications).
  • Automatically raise a pull request to the GitOps repository with changes.
  • Wait for review and merge of the PR.
  • Sync the GitOps Application once the PR is merged into the main branch.

This promotes GitOps best practices such as Git being the single source of truth, approval-based changes, and audit trails through version control.


Creating a PR Pipeline in Harness

To help you get started with creating PR Pipelines in Harness, here are some sample configurations and examples: