Automation

Forkline can automatically create AI-powered tasks in response to events from your git provider. The goal is to turn routine repository events into fast, reviewable follow-up work.

Overview

Automation lets you:

  • Respond to @forkline mentions in issues and pull requests
  • Repair failed CI runs automatically
  • Resolve merge conflicts after base-branch changes
  • Review pull requests as they open
  • Control who is allowed to trigger the workflows

Info: Automation requires configured webhooks. GitHub App connectors install these automatically, while GitLab and Forgejo connectors need manual webhook setup.

Automation settings in repository

Automation patterns
Thread driven 01

Bot Mentions

Trigger

@forkline mention in an issue or PR

Action

Create a scoped agent task from the conversation context

Result

Plan, code, or review work posted back to the thread

Validation driven 02

CI Auto-Fix

Trigger

Failed check run, pipeline, or status event

Action

Inspect logs, reproduce the failure, and attempt a fix

Result

Commit or comment explaining what changed

Mergeability driven 03

Merge Conflicts

Trigger

Pull request or merge request becomes unmergeable

Action

Resolve conflicts against the updated base branch

Result

Clean branch state pushed back to the review thread

Review driven 04

Auto PR Review

Trigger

New pull request or merge request opens

Action

Analyze the diff using your configured review scope

Result

Findings, suggestions, or direct follow-up changes

Each automation mode starts with a provider event, runs a bounded task, and produces a visible outcome in the repository thread.

Automation Types

Bot Mentions

Mention @forkline or @forkline-bot in an issue or pull request when you want Forkline to respond to the thread context.

  • Best for: implementation requests, debugging help, summarization, and follow-up work
  • Trigger shape: issue bodies, issue comments, pull request bodies, and pull request comments
  • Learn more: Bot Mentions

CI Auto-Fix

CI auto-fix watches for failing validation events and attempts a repair loop.

  • Best for: lint failures, type errors, straightforward test failures, and simple build breakages
  • Trigger shape: failed check runs, pipeline events, or status events
  • Learn more: CI Auto-Fix

Merge Conflict Auto-Fix

Merge conflict automation starts when an otherwise valid pull request or merge request stops being mergeable.

  • Best for: base-branch drift after parallel development
  • Trigger shape: PR or MR updates that indicate conflicts
  • Learn more: Merge Conflicts

Auto PR Review

Auto PR review gives you a repeatable first-pass review when a pull request opens.

  • Best for: security checks, performance review, documentation review, and consistent repo policy checks
  • Trigger shape: newly opened pull requests or merge requests
  • Learn more: Auto PR Review

Configuration

Trigger Policies

Control who can trigger automation on your repositories:

PolicyWho Can TriggerBest For
Owner onlyOnly youPersonal repositories
CollaboratorsUsers with write accessShared repositories
AllowlistSpecific usernamesControlled access
AnyoneAll usersOpen source

Learn more about Trigger Policies

Per-Repository Settings

Each repository can configure:

SettingDescription
CI Auto-FixEnable or disable automatic CI failure fixing
Merge Conflict Auto-FixEnable or disable automatic conflict resolution
Max AttemptsLimit fix attempts per PR to prevent runaway costs
Skip LabelsAdd labels like no-ci-auto-fix to opt out

Prerequisites

  1. Connect your GitHub, GitLab, or Forgejo account
  2. Activate a repository in Forkline
  3. Configure the required webhook events
  4. Make sure you have enough balance for the resulting work

Webhook Events

Event TypeRequired For
IssuesBot mentions in issues
Issue commentsBot mentions in comments
Pull requestsCI auto-fix, merge conflicts, auto PR review
PR commentsBot mentions in PRs
Check runs or pipeline eventsCI auto-fix

Tip: See the Webhooks guide for provider-specific event names.

Comparison

AutomationTriggerTask TypeConfigurable
Bot Mentions@forkline mentionIssueResponse, PrReviewNo, always on when webhooks are configured
CI Auto-FixCI failure webhookCiFixYes
Merge Conflict FixPull request conflict detectedMergeConflictFixYes
Auto PR ReviewPull request openedAutoPrReviewYes

Next Steps