---
title: Commit
description: A commit on the content branch.
updated_at: '2026-11-26T00:01:46+01:00'
created_at: '2026-11-19T08:33:37+01:00'
symbol:
  kind: interface
  name: Commit
  signatures:
    - interface Commit
  members:
    - name: sha
      kind: property
      signature: 'readonly sha: string'
    - name: url
      kind: property
      signature: 'readonly url: string'
      description: The commit on GitHub.
    - name: committedAt
      kind: property
      signature: 'readonly committedAt: string'
      description: ISO 8601.
    - name: summary
      kind: property
      signature: 'readonly summary: string'
      description: >-
        What it says it changed: for a save the site committed, the note its
        editor wrote, empty when they wrote none; otherwise the message's first
        line.
    - name: author
      kind: property
      signature: 'readonly author: { … }'
      description: >-
        Its git author, and their GitHub login when GitHub linked the commit to
        an account.
    - name: author.name
      kind: property
      signature: 'readonly name: string'
    - name: author.login
      kind: property
      signature: 'readonly login: string | null'
    - name: account
      kind: property
      signature: 'readonly account: { readonly id: string } | null'
      description: >-
        The site account behind it, only when the site's own record says so: a
        save the site committed as this commit, or a submission the site opened
        as a pull request that this commit merged. Git metadata (the author, the
        committer, a `Svartz-Account` trailer) is whatever its maker wrote, so
        it never names an account.
    - name: files
      kind: property
      signature: 'readonly files: readonly string[] | null'
      description: >-
        The vault files it changed, as vault paths; `null` while unknown, as for
        commits read from GitHub's lists.
    - name: allFiles
      kind: property
      signature: 'readonly allFiles: boolean'
      description: >-
        Whether `files` holds every vault file it changed. GitHub lists a
        commit's files in pages past 300 and stops at 3,000, and only the first
        page is read, so a larger commit's `files` are a part of them.
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-submissions/src/commits.ts#L49
---

# Commit
