---
title: SubmissionsOptions
updated_at: '2026-11-19T11:42:46+01:00'
created_at: '2026-11-11T18:21:28+01:00'
symbol:
  kind: interface
  name: SubmissionsOptions
  signatures:
    - interface SubmissionsOptions
  members:
    - name: repo
      kind: property
      signature: 'readonly repo: string'
      description: 'The GitHub repository pull requests open on, as `owner/name`.'
    - name: branch
      kind: property
      signature: 'readonly branch?: string'
      description: The branch pull requests target.
      default: the repository's default branch
    - name: vaultRoot
      kind: property
      signature: 'readonly vaultRoot?: string'
      description: 'The vault folder''s path inside the repository, such as `"content"`.'
      default: read from git
    - name: labels
      kind: property
      signature: 'readonly labels?: readonly string[]'
      description: Labels every submission's pull request gets.
    - name: token
      kind: property
      signature: 'readonly token?: [[reference/api/core/EnvReference|EnvReference]]'
      description: >-
        The server environment variable holding a fine-grained GitHub token with
        read and write access to the repository's Contents and Pull requests.
        Default, unless `app` is set: `{ env: "SVARTZ_GITHUB_TOKEN" }`.
    - name: app
      kind: property
      signature: 'readonly app?: { … }'
      description: >-
        Open pull requests as a GitHub App, in place of `token`: they then come
        from `<app>[bot]`.
    - name: app.id
      kind: property
      signature: 'readonly id: string | number'
      description: 'The App''s ID, or its Client ID.'
    - name: app.privateKey
      kind: property
      signature: 'readonly privateKey: [[reference/api/core/EnvReference|EnvReference]]'
      description: >-
        The server environment variable holding the App's private key, the
        `.pem` file GitHub generates.
    - name: app.installation
      kind: property
      signature: 'readonly installation?: number'
      description: The App's installation ID on `repo`.
      default: looked up from the repository
    - name: mode
      kind: property
      signature: 'readonly mode?: [[reference/api/plugin-submissions/Mode|Mode]]'
      description: >-
        Which saves commit straight to the branch. On a site with accounts,
        `permission` commits for whoever holds `submissions:commits:write` on
        the page and opens a pull request for the rest; `commit` refuses the
        rest instead; `pull-request` never commits. Commits need `app` and the
        `auth` plugin on the same vault.
      default: '`"permission"`'
    - name: signIn
      kind: property
      signature: 'readonly signIn?: { … }'
      description: 'Reader sign-in, through the `auth` plugin on the same vault.'
    - name: signIn.required
      kind: property
      signature: 'readonly required?: boolean'
      description: >-
        Refuse submissions from readers who aren't signed in; the editor asks
        them to sign in.
      default: '`false`'
    - name: sync
      kind: property
      signature: 'readonly sync?: { … }'
      description: >-
        Mirror the repository's activity through GitHub webhooks into D1, and
        show editors their edit going live. Needs a Cloudflare target.
    - name: sync.database
      kind: property
      signature: 'readonly database: [[reference/api/core/EnvReference|EnvReference]]'
      description: >-
        The D1 binding the mirror lives in, such as `{ env: "SVARTZ_DB" }`; it
        may be the one `auth` uses.
    - name: sync.webhookSecret
      kind: property
      signature: 'readonly webhookSecret: [[reference/api/core/EnvReference|EnvReference]]'
      description: >-
        The server environment variable holding the webhook secret the GitHub
        App signs its deliveries with.
    - name: sync.live
      kind: property
      signature: >-
        readonly live: { readonly workflow: string } | { readonly environment:
        string }
      description: >-
        What "live" means: a successful run of a workflow file in
        `.github/workflows/`, such as `{ workflow: "deploy.yml" }`, or a
        successful deployment to an environment, such as `{ environment:
        "production" }`.
    - name: guard
      kind: property
      signature: 'readonly guard?: { … }'
      description: What every submission must pass before it reaches GitHub.
    - name: guard.turnstile
      kind: property
      signature: >-
        readonly turnstile?:
        [[reference/api/plugin-submissions/TurnstileOptions|TurnstileOptions]]
      description: >-
        Show a Cloudflare Turnstile challenge in the editor and verify its token
        on the server. Skipped when sign-in is required.
    - name: guard.rateLimit
      kind: property
      signature: >-
        readonly rateLimit?:
        [[reference/api/plugin-submissions/RateLimitOptions|RateLimitOptions]]
      description: 'Submissions allowed per signed-in identity, or per IP when anonymous.'
      default: 10 an hour
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-submissions/src/index.ts#L37
description: ''
---

# SubmissionsOptions
