---
title: commitSource
description: >-
  What reading the vault's commits takes, or `undefined` when no submissions
  plugin keeps its mirror. Call it from `emitArtifacts` with `enforce: "post"`:
  the vault's folder in the repository is what the submissions plugin's own
  `emitArtifacts` read from git.
updated_at: '2026-11-26T00:01:46+01:00'
created_at: '2026-11-19T08:33:37+01:00'
symbol:
  kind: function
  name: commitSource
  signatures:
    - >-
      commitSource(ctx: [[reference/api/core/PluginContext|PluginContext]]):
      [[reference/api/plugin-submissions/commits/CommitSource-interface|CommitSource]]
      | undefined
  parameters:
    - name: ctx
      type: '[[reference/api/core/PluginContext|PluginContext]]'
  returns:
    type: >-
      [[reference/api/plugin-submissions/commits/CommitSource-interface|CommitSource]]
      | undefined
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-submissions/src/commits.ts#L171
---

# commitSource
