> For the complete documentation index, see [llms.txt](https://docs.runway.team/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.runway.team/api/configuration-as-code/file-reference.md). Agents can also search and read this documentation through its [MCP server](https://docs.runway.team/~gitbook/mcp).

# File reference

This page explains how a configuration file works, and what each part of it is for.&#x20;

[**How the file works**](#how-the-file-works)

* [The shape of a file](#the-shape-of-a-file)
* [What you leave out stays as it is](#what-you-leave-out-stays-as-it-is)
* [Clearing a value](#clearing-a-value)&#x20;
* [Keys: how the file refers to things](#keys-how-the-file-refers-to-things)
* [What gets checked](#what-gets-checked)&#x20;

[**Sections**](#sections)

* [Version](#version)
* [App](#app)
* [Versioning](#versioning)&#x20;
* [Tags](#tags)
* [Branches](#branches)
* [Destinations](#destinations)
* [Integrations](#integrations)&#x20;
* [Health metrics](#health-metrics)
* [Feature affiliations](#feature-affiliations)
* [Fix requests](#fix-requests)
* [Required steps](#required-steps)
* [Flightpath](#flightpath)
* [Checklists](#checklists)
* [Automations](#automations)&#x20;
* [Notifications](#notifications)
* [Custom strings](#custom-strings)&#x20;

For how to export, plan and apply a file, see [Configuration as code](https://docs.runway.team/api/configuration-as-code). For step-by-step examples, see [Examples](https://docs.runway.team/api/configuration-as-code/examples).

### How the file works

#### The shape of a file

```yaml
# yaml-language-server: $schema=https://api-docs.runway.team/config-as-code/v2/schema.json
version: 2

app:
  id: acme-ios          # Leave out to create a new app
  name: Acme

destinations: {...}     # Where the app ships: App Store, Google Play, OTA...
integrations: {...}     # GitHub, CI, Slack, analytics... installed on this app
flightpath:
  steps: {...}          # The steps every release goes through
  stepGraph: [...]      # The order the steps show in
automations: {...}
notifications: {...}
checklists: {...}
# ...and more, see Sections below
```

Only `version` and `app` are required. Every other section is optional.

{% hint style="info" %}
Exported files start with a `yaml-language-server` line that points at the file's schema. Editors that support it, like VS Code with the [Red Hat YAML extension](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml), use it for autocomplete, descriptions on hover, and inline errors. Add the same line to files you write by hand.
{% endhint %}

#### What you leave out stays as it is

The file describes **changes**, not the whole app. Anything the file doesn't mention keeps its current value. This file only renames the app, and leaves everything else alone:

```yaml
version: 2
app:
  id: acme-ios
  name: Acme Mobile
```

So you can keep a small file with just the settings you want to manage, or keep a full export in your repository, whichever suits you.

#### Clearing a value

Leaving a value out keeps it, so clearing is explicit: write its empty value.

```yaml
app:
  icon: null              # remove the icon
integrations:
  $slack:
    settings:
      primaryChannelIds: []   # clear a list
customStrings:
  bumpVersionPRTitle:
    value: null           # go back to Runway's default text
```

`null` is accepted wherever a value can be cleared. Your editor flags the places it isn't.

#### Keys: how the file refers to things

Destinations, integrations, steps, tags, branches, health metrics, feature affiliations and checklist items are keyed by **stable keys**: names starting with `$`, using lowercase letters, numbers and `_`.

```yaml
destinations:
  $ios:                      # the key
    name: iOS App Store      # the display name, which can change freely

flightpath:
  steps:
    $release:
      archetype: takeoff
      destinations: [$ios]   # other sections refer to it by key
```

* On export, Runway generates a key from each entry's name, like `$release_candidate_ios` for "Release candidate (iOS)". Tags and branches start with their kind: `$tag_default`, `$branch_default`.
* Once an entry exists, its key stays the same even when you rename it in the file or in Runway, so references never break.
* When you add an entry, you choose its key. Runway keeps it from then on.
* Keys are unique across the whole file: a step and an integration can't both be `$github`.
* Changing a key in the file means removing that entry and adding a new one.

#### What gets checked

Planning checks the entries your file changes, plus whatever they affect. Entries you don't change are accepted as they are, so you're never blocked by settings you didn't touch.

{% hint style="info" %}
Unknown keys are errors rather than being silently ignored, so a misspelled key like `enabeld: true` fails the plan. This includes keys inside `settings`.
{% endhint %}

### Sections

What each section is for and what can change. Field-level descriptions and allowed values show up in your editor as you type.

#### Version

`version` is always `2`.

#### App

```yaml
app:
  id: acme-ios
  name: Acme
  appGroup: Consumer apps
  icon: null
  defaultReleaseType: minor          # major, minor, point, hotfix or rollback
  assumePointReleasesAreHotfixes: true
  defaultReleaseIncrement: 1         # How much the default release type's digit goes up when predicting the next version
```

* `id` picks the app to update. Leave it out to create a new app.
* Everything else can be changed.

#### Versioning

```yaml
versioning:
  versionFiles:
    - file: ios/Acme/Info.plist
    - file: android/app/build.gradle
      customPattern: 'versionName "{version}"'
  customVersioning:
    appStore:
      pattern: "{major}.{minor}"
      placeholder: x
```

* `versionFiles` are the files in your repository where Runway bumps the version. Runway checks each file exists in the repository when you plan.
* `customVersioning` sets a version format other than three-digit SemVer, keyed by version type, like `appStore` (App Store version) or `runwayUserFacing` (Runway display version). Removing an entry goes back to the standard format.

#### Tags

```yaml
tags:
  $tag_default:
    pattern: v{version}
```

The pattern Runway uses to read release tags from your repository and to create tags when releases complete. `{version}` and `{versionConcise}` stand in for the release version.

* `$tag_default` is the app's tag pattern, the one on the app's settings page. Other tag configs used by specific steps are `$tag_custom_1`, `$tag_custom_2`...
* Only `$tag_default`'s pattern can be changed. A new app gets `$tag_default` when the file sets it.

#### Branches

```yaml
branches:
  $branch_default:
    workingBranch: main
    releaseBranchPattern: release/{version}
    hotfixBranchPattern: hotfix/{version}
```

The branches Runway works with. `workingBranch` is where day-to-day work lands; `releaseBranchPattern` and `hotfixBranchPattern` name each release's branch. `stagingBranch` and `prodBranch` can only be removed (set to `null`).

#### Destinations

```yaml
destinations:
  $ios:
    name: iOS
    platform: ios
    appStoreType: AppStoreConnect
  $android:
    name: Android
    platform: android
    appStoreType: GooglePlay
  $ota:
    name: OTA updates
    platform: react-native-ota
```

Where the app ships. Each destination has its own release steps.

* New destinations can be `ios`, `android` or `react-native-ota`. iOS and Android destinations need an `appStoreType`; OTA destinations don't take one.
* Only `name`, `icon` and `tags` can change on an existing destination. To change its platform or store, remove it and add a new one.
* An app needs at least one destination.
* Adding or removing a destination also adds or removes its steps. See [Add a destination](https://docs.runway.team/api/configuration-as-code/examples#add-a-destination) and [Remove a destination](https://docs.runway.team/api/configuration-as-code/examples#remove-a-destination).

#### Integrations

```yaml
integrations:
  $github:
    type: github
    provider: github:4242
    settings:
      repoName: acme-mobile
  $github_ci:
    type: github-ci
    provider: github:4242
    settings:
      repoName: acme-mobile
      workflowId: "1002"     # Build
  $slack:
    type: slack
    provider: slack:T0123ABCD
    settings:
      primaryChannelIds:
        - C0RELEASES         # #releases
```

Integrations installed on this app. Steps use them by key.

{% hint style="warning" %}
Integrations can only be configured in a file if they use an existing integration provider. A configuration file never stores credentials, so if you need to authenticate with a new provider (for example GitHub, Slack, App Store Connect or your CI), you must do so in the Runway web app first.
{% endhint %}

* `type` and `provider` are required to add an integration, and can't change afterwards. `provider` is the provider's **Provider ID**, which you'll find under **Organization settings → Integrations**. See [Connect an integration](https://docs.runway.team/api/configuration-as-code/examples#connect-an-integration).
* `alias` and `settings` can change.
* An app has at most one integration per capability where Runway only supports one, like version control or team communication.
* Removing an integration uninstalls it from the app. Steps that use it need to stop listing it in the same file.

#### Health metrics

```yaml
healthMetrics:
  $crash_free_users:
    type: userStability       # Crash-free users
    integration: $crashlytics
    thresholds:
      - value: 99.5
        condition: GreaterThanOrEqualTo
    notifyOnApproachingThreshold: true
  $checkout_conversion:
    type: customEvent
    integration: $amplitude
    eventName: checkout_completed
    thresholds:
      - value: 2
        condition: GreaterThan
```

The metrics Runway tracks during rollout.

* `integration` is the key of the stability or analytics integration the metric reads from.
* A release is healthy while the metric meets every threshold. `condition` is `LessThan`, `LessThanOrEqualTo`, `GreaterThanOrEqualTo` or `GreaterThan`.
* Composed metrics combine others: list their keys in `composedMetrics` and refer to them as `M1`, `M2`... in `equation`, like `M1 / M2 * 100`.
* On an existing metric, `thresholds`, `name`, `description`, `hideOnRolloutView` and `notifyOnApproachingThreshold` can change. To change what it measures, remove it and add a new one.

#### Feature affiliations

```yaml
featureAffiliations:
  $jira_fix_version:
    integration: $jira
    type: jira-fix-version
    pattern: "iOS {version}"
```

How Runway labels tickets in your issue tracker with the release they ship in. Only `pattern` can change on an existing one.

#### Fix requests

```yaml
fixRequests:
  creation:
    fromOpenPRsAgainstReleaseBranch: true
    disallowAfterSubmission: true
    showDisallowedMessage: true
    disallowedMessage: The release is submitted. Talk to the release pilot.
    threadNotifications: true
  approvals:
    enabled: true
    mode: window              # always or window
    requireForFixesCreatedBeforeWindow: false
    required: 1
    preventCodeAuthorApproval: true
    implicitCreatorApproval: false
    statusChecks: true
  autoMerge:
    enabled: true
    workingBranchStrategy: squash     # doNotMerge, squash or mergeCommit
    releaseBranchStrategy: mergeCommit
  formFields:
    - name: Why is this fix needed?
      placeholder: ""
      description: ""
      prePopulatedText: ""
      required: true
      minCharacters: 20
```

The **Fix requests** settings page. `formFields` is the fix request form and is replaced whole: write every field you want.

#### Required steps

```yaml
requiredSteps:
  shouldHideNonRequiredSteps: false
  standard:
    screenshots: false
    metadata: true
  hotfix:
    screenshots: false
    metadata: false
  rollback:
    metadata: false
```

Which steps must be done before submission and release, per release type, like the **Edit required release steps** dialog. Steps are keyed by type (`archetype`), and only the app's own step types are accepted. Types left out keep their value.

#### Flightpath

```yaml
flightpath:
  steps:
    $kickoff:
      name: Kickoff
      archetype: kickoff
      destinations: [$ios, $android]
      integrations: [$github]
      branchConfig: $branch_default
    $ci:
      name: Release candidate
      archetype: releaseCandidate
      destinations: [$ios, $android]
      integrations: [$github, $github_ci]
      branchConfig: $branch_default
    $beta:
      name: TestFlight
      archetype: betaTesting
      destinations: [$ios]
      upstreamCIStep: $ci
      settings:
        betaTestingStyle: timeLimitedSoak
        betaSoakDurationHours: 24
    $release:
      name: Release
      archetype: takeoff
      destinations: [$ios]
      upstreamCIStep: $ci
      settings:
        appStoreSettings.phasedRelease: true
    # ...
  stepGraph:
    - groups:
        - steps: [$kickoff]
    - groups:
        - steps: [$ci]
        - steps: [$beta]
    - groups:
        - steps: [$release]
```

The steps every release goes through.

**Step fields**

* **name –** The step's name in Runway.
* **archetype –** The step's type. It can't change.
* **destinations –** The destinations the step serves.
* **integrations –** Keys of the integrations the step uses, at most one per capability.
* **upstreamCIStep –** The CI step whose builds this step uses, for beta testing, regression testing and release steps.
* **tagConfig / branchConfig –** The tag and branch config the step uses. They can be changed, but not removed.
* **settings –** The fields in the step's settings drawer.

**Step types (`archetype`)**

| Archetype                  | Step                   | Serves                      |
| -------------------------- | ---------------------- | --------------------------- |
| `kickoff`                  | Kickoff                | All destinations            |
| `featureReadiness`         | Feature readiness      | All destinations            |
| `translations`             | Translations           | All destinations            |
| `releaseCandidate`         | CI / release candidate | One or several destinations |
| `regressionTesting`        | Regression testing     | One or several destinations |
| `approvals`                | Approvals              | One or several destinations |
| `betaTesting`              | Beta testing           | One or several destinations |
| `screenshots`              | Screenshots            | One destination             |
| `metadata`                 | Metadata               | One destination             |
| `submission`               | Submission             | One destination             |
| `storeReview`              | Store review           | One destination             |
| `takeoff / ciDistribution` | Release                | One destination             |
| `rollout`                  | Rollout                | One destination             |

**What can change**

* Any step can be renamed, and its integrations, upstream CI step, tag config, branch config and settings changed.
* **CI (`releaseCandidate`), beta testing, regression testing and approvals steps** can be added, removed and moved in `stepGraph`, like on the Flightpaths settings page.
* Other step types come and go with their destination: they're added along with a new destination (or a new app), and removed with it.
* Each destination keeps at least one CI step. Beta testing, regression testing and approvals can be removed entirely.
* A step can't be removed while another step depends on it, like a release step whose `upstreamCIStep` it is, or a rollout following it. Point the other step elsewhere in the same file.
* A new step needs a `tagConfig`, `branchConfig` and `upstreamCIStep` when other steps of its type have one.
* A step shared between destinations can add a destination the same file adds, or drop one the same file removes.

**`stepGraph`** lists every step in display order: columns (`groups` lists) of rows (`steps` lists). Every step must appear in it.

**Settings to know about**

* Submission, store review and release steps share their destination's release settings, so only the release step (`takeoff`) lists them.
* On the release step, `ageRatingDeclaration: null` uses the app's default age rating; any other value overrides it for this destination and is sent to App Store Connect.
* Settings that point at steps take step keys, like a rollout's `sourceStepConfigId: $release` or metadata's `upstreamBetaStepConfigId: $beta`.
* A new step's settings can only be set on a later apply, once the step exists.

#### Checklists

```yaml
checklists:
  $cli_qa_sign_off:
    step: $approvals
    placement: approvals          # stepChecklist, regressionTesting or approvals
    title: QA sign-off
    description: Run the smoke suite on the RC build
    groups: [qa]                  # or owners: [user ids], not both
    releaseTypes: all             # all, hotfixOnly, allExceptHotfix or rollbackOnly
    blocksEvents: [submissionAutomation, submissionManual]
    notifyEnabled: true
    channels: [C0RELEASES]
    targetCompletion:
      timing: before              # before, after or onTime
      relativeHours: 4
      lifecycleEventType: submit  # kickoff, submit, release or rollout
      incompleteReminderEnabled: true
```

The items on each step's checklist, like the **Checklists** settings page.

* `step` is a step key. `placement` is the list the item is on: the step's Checklist tab (`stepChecklist`, the default), or the regression testing or approvals step's own list.
* `step` and `placement` can't change. To move an item, remove it and add it under a new key.
* With no `groups` or `owners`, the release pilot owns the item.
* `targetCompletion: null` turns the target off.
* New items go to the end of their list. The order you set in Runway is kept.
* Items added to a single release, and items from your organization's templates, aren't in the file.
* Changes reach releases in progress too.

#### Automations

```yaml
automations:
  app:
    AutoCreateRunwayReleases:       # Create releases automatically
      enabled: true
  steps:
    $ci:
      AutoTriggerCIWorkflow:        # Trigger CI workflow
        enabled: true
        relativeTimeTrigger:
          timing: after
          relativeHours: 2
          lifecycleEventType: kickoff
        settings:
          skipIfBuildAlreadyExists: true
        overrides:
          hotfix:
            enabled: true
            completedStepsTrigger: {}
          rollback:
            enabled: false
```

What's on the **Automations** tab of the Flightpaths settings page: app-wide automations under `app`, and each step's under `steps.<step key>`, keyed by automation type. Export comments name each one.

* `enabled`, triggers and `settings` can change. Automations can't be added or removed: they come with their steps.
* **Triggers.** `relativeTimeTrigger` runs the automation at a set time before or after a release event. `completedStepsTrigger` runs it once required steps are done (`{}`), or only the steps you list (`hasCustomRequiredSteps: true` with `requiredSteps: [...]`). Set a trigger to `null` to turn it off.
* **Overrides** are the other tabs in an automation's settings: a release type (`hotfix`, `rollback`...) that runs differently.
  * Each override is written whole: its `enabled`, its triggers and only the `settings` that differ from the automation's own.
  * A release type without an override uses the automation's own values. Removing an override goes back to them.
  * A release type that's off is just `enabled: false`.
  * App-wide automations run once for every release type, so they can't have overrides.
* Automations whose triggers are condition groups only let the file turn them on or off.

#### Notifications

```yaml
notifications:
  BUILD_AVAIL:                      # New build available
    enabled: true
    sendTo: [comms, email]
    comms:
      channels: [C0BUILDS]
      mention:
        groups: [qa]
      appendCustomText: "Please install and test."
    email:
      recipients: [qa@acme.com]
    settings:
      threadWithRelatedNotifications: true
    overrides:
      $beta:
        comms:
          usePrimaryChannels: true
```

The **Notifications** settings page, keyed by notification. `comms` is Slack or Microsoft Teams, whichever the app uses.

* Any part left out keeps its value.
* `mention` mentions one kind at a time: `groups`, `users` or `releasePilot: true`. `{}` mentions nobody.
* **Overrides** change a notification for specific steps, keyed by step.
  * An override lists only what differs; everything else follows the app-wide notification.
  * Leaving `overrides` out keeps them as they are. Writing `overrides` replaces them all: steps it doesn't list lose their override.
  * An override's `enabled` follows the app-wide toggle unless you set it to something different.
  * `comms.usePrimaryChannels: true` sends to the app's main channels instead of the notification's.
* Overrides grouped across steps in Runway show up as one copy per step. Changing one takes it out of its group.

#### Custom strings

```yaml
customStrings:
  bumpVersionPRTitle:
    value: "chore: bump version to {version}"
  releaseSummaryMessage:
    value: |-
      {appName} {version} is out! 🎉
```

Tokens like `{version}` are replaced with release details. Each string supports its own tokens, and planning rejects any it doesn't support, listing the ones it does:

* `{version}` works in every string except the cherry-pick commit message.
* `{versoin}` is rejected, since it isn't a supported token.
* `${BUILD_ENV}` or `{BUILD_ID}` is kept as text, since only camelCase words in braces are tokens.

The cherry-pick commit message must include `{commitMessage}` exactly once, so the original commit's message isn't lost.
