Documentation structure for LLMs (llms.txt)

Forgejo trigger event options Beta

Cloud

Version control: Forgejo

When you create a trigger for a Forgejo pipeline, you choose which event triggers a pipeline run from a set of preset options.

The Forgejo integration is in beta. Forgejo is available for circleci type organizations only. For an overview of the integration, see the Users, Organizations, and Integrations Guide.

Introduction

CircleCI projects have pipelines and triggers.

  • Pipelines define the various CI/CD 'units' of work that make up your project.

  • Triggers define when and how a pipeline run is triggered.

When you create a Forgejo project, CircleCI sets up your first pipeline and one Forgejo trigger. Forgejo sends events to CircleCI through the webhook you add when you connect your instance. For the project creation steps, see the Create a Project page.

Once your project exists, you can configure additional triggers under Project settings  Project Setup. See the Set Up Triggers page for more information.

Supported trigger options

Select a trigger event from the event dropdown. The following preset options are available:

  • All pushes: Trigger a pipeline run on all pushes to your repository. CircleCI selects this option by default.

  • Tag pushes: Trigger a pipeline run on pushes to tags only. When choosing this option, you also need to define tag filters in your config file. See Executing Workflows for a Git Tag.

  • Pushes to default branch: Trigger a pipeline run on pushes to the default branch only.

  • PR opened or pushed to, default branch and tag pushes: Trigger a pipeline run when a pull request is opened or reopened. Pushes to a branch with an open pull request, any tag, or the default branch also trigger a run.

  • PR opened: Trigger a pipeline run when a pull request is opened.

  • Non-draft PR opened: Trigger a pipeline run when a non-draft pull request is opened. Draft pull requests do not trigger a pipeline run.

  • PR merged: Trigger a pipeline run when a pull request is merged only.

  • PR merged or closed: Trigger a pipeline run when a pull request is merged or closed.

  • PR marked ready for review: Trigger a pipeline run when a pull request is taken out of draft mode and marked ready for review.

  • Pushes to open non-draft PRs: Trigger a pipeline run when there is a push to a branch with an open pull request that is not in draft mode.

Other ways to trigger a Forgejo pipeline

As well as Forgejo events, you can trigger a Forgejo pipeline run using:

For the full list of events that can trigger a pipeline run, see the Trigger a Pipeline page.

Configuration files in Forgejo

A trigger starts a run of the pipeline defined by a config file in your repository. You set the config file path when you create your project. You can change the path later in Project settings  Project Setup. See the Create a Project page.

For guidance on creating a config file, see the following pages: