☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

template_path

Table of contents

Description:

This key defines the path to a file containing your commit template.

The value is a string that specifies a file path relative to the root directory. CloudCannon will use the contents of this file as the commit template.

CloudCannon will not use this file if template_string is also defined for the commit template.

Appears in:
└── commit_templates
    └── [*]
        └── template_path
Type:
string
Examples:

In this example, we have configured a commit template to use a file at /.git/commit-message.txt.

Copied to clipboard
commit_templates:
  - label: Commit message from file
    template_path: /.git/commit-message.txt
{
  "commit_templates": [
    {
      "label": "Commit message from file",
      "template_path": "/.git/commit-message.txt"
    }
  ]
}
Open in a new tab