Actions
An action is a capability the agent can invoke during an automation run. You pick the actions when you build the automation. At run time the agent decides when to use each one and supplies the inputs, such as the pull request title or the issue brief.
Modes
Every action carries a mode that controls when it runs:
always: the action runs every time the automation completes.smart: the action only runs when the agent judges the execution noteworthy.
Use smart for high-impact actions such as merges and rollbacks, so a routine run does not merge a pull request or roll back a deployment.
Required integrations
Each action declares the integrations it depends on. Connect those first, then the action becomes available in the builder. For example, submitPr requires GitHub, and handoffToDevin requires both Devin and GitHub. The rollback actions declare no integration: they act through the connected cloud account for the target provider.
Actions also declare which triggers they are compatible with. commentPr only accepts pull request and comment events, while the rollback actions accept alerts, cron, webhooks, GitHub events, deployment events, and platform events such as polylane.change_record.created.
Code
Act on pull requests and source branches.
submitPrcommentPrmergePrautofixhandoffToDevinhandoffToCursorhandoffToFactoryhandoffToConductorIssue tracking
Open and comment on issues.
commentGithubIssuecreateGithubIssuedismissWithCauseflagExternalsilenceAlertRuleDeployment
Operate on live deployments.
rollbackCloudflareDeploymentrollbackVercelDeploymentrollbackRenderDeploymentrollbackFlyDeploymentNotable actions
submitPropens a pull request from a branch the agent pushed during the run. SetrequireLint: trueto fail the action unless the agent attached a passing lint or test report.commentPr,commentIssue, andcreateIssuepost comments and open GitHub issues.createIssuemerges your configureddefaultLabelsinto every issue, so you can tag everything the agent files with a label likeagent-generated.mergePrmerges the triggering pull request. You constrain it withallowedMethods(merge, squash, or rebase) andrequireChecks: true, which refuses to merge while any required check is failing or pending.
{ "type": "mergePr", "mode": "smart", "allowedMethods": ["squash"], "requireChecks": true }
Rollbacks
One rollback action exists per deployment provider: rollbackCloudflareDeployment, rollbackVercelDeployment, rollbackRenderDeployment, and rollbackFlyDeployment. Each supports a redeploy-previous strategy that returns to the last known-good version (redeploy_previous, or redeploy_previous_image on Fly), plus a pin strategy that targets a specific version, deployment, commit, or image: pin_to_version on Cloudflare, pin_to_deployment on Vercel, pin_to_commit on Render, and pin_to_image on Fly. When the automation was triggered by a deployment event, the target comes from the event. Otherwise the agent names the resource to roll back from its investigation.
Opening issues
The openIssue action opens a Polylane issue and starts its investigation, subject to the workspace's daily auto-investigation limit. The agent supplies a title, a severity, and a prompt that becomes the investigation's first message. The issue records the automation as its origin and links back to the triggering execution. Set defaultSeverity in the config as a fallback when the agent does not specify one.
Autofix and handoffs
The autofix action queues an autofix run: the agent drafts an implementation plan with file paths and line numbers, and the workspace's default autofix executor implements it and opens a pull request. If the default executor is Devin or Cursor but no matching integration is connected, the run falls back to the Polylane executor.
To pin a specific external agent instead, use handoffToDevin, handoffToCursor, or handoffToFactory. Each delegates implementation to the connected Devin, Cursor, or Factory integration, which clones the repository and applies the plan. Devin and Cursor open the pull request on their own GitHub identity. Factory runs a droid that pushes a branch; the pull request is opened by the droid or by Polylane from that branch. Each handoff action also requires GitHub.