---
title: CommitSource
description: >-
  What reading a vault's commits takes: JSON, for the reader's server data.
  Holds no secret, only where they are.
updated_at: '2026-11-26T00:01:46+01:00'
created_at: '2026-11-19T08:33:37+01:00'
symbol:
  kind: interface
  name: CommitSource
  signatures:
    - interface CommitSource
  members:
    - name: repo
      kind: property
      signature: 'readonly repo: string'
      description: '`owner/name`.'
    - name: branch
      kind: property
      signature: 'readonly branch?: string'
      description: The content branch; the repository's default branch when unset.
    - name: root
      kind: property
      signature: 'readonly root: string'
      description: 'The vault''s folder in the repository, `""` at its root.'
    - name: credentials
      kind: property
      signature: >-
        readonly credentials:
        [[reference/api/plugin-submissions/server/Credentials|Credentials]]
    - name: database
      kind: property
      signature: 'readonly database: { … }'
      description: The D1 binding the mirror lives in.
    - name: database.env
      kind: property
      signature: 'readonly env: string'
    - name: environment
      kind: property
      signature: 'readonly environment?: string'
      description: >-
        The deployment environment that means live, which the reconcile poll
        lists deployments of.
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-submissions/src/commits.ts#L34
---

# CommitSource
