Skip to main content
The Git-based CMS integration publishes each article as a Markdown file, with front matter, committed to your site’s GitHub repository. It works with CloudCannon, Hugo, Jekyll, Astro, and more. Your CMS picks up the commit and your site rebuilds as usual. Set it up under Integrations → Git-based CMS. Only GitHub repositories are supported.
Every publish rewrites the whole file from the article in ChatFeatured, so edits made in your CMS editor or the repository are lost. Make your edits in ChatFeatured.

Setup

Step 1: Give ChatFeatured access to your repository

There are two ways in. The ChatFeatured GitHub App is the default and works for organizations that turn off personal access tokens. A fine-grained token is the alternative. With the GitHub App
  1. Go to Integrations → Git-based CMS and click Connect with GitHub. Sign in to GitHub if it asks.
  2. Pick the account or organization that owns your site’s repository, choose Only select repositories, and pick the repository.
  3. Click Install. GitHub sends you back to ChatFeatured with the repository ready to pick.
The App only gets Contents and Pull requests access to the repositories you picked, and commits show up as made by the ChatFeatured app. If you aren’t an owner of the organization, GitHub asks an owner to approve the install. Click Connect with GitHub again once they have. With a fine-grained token Click Use a personal access token instead on the integration page, then create the token:
  1. On GitHub, go to Settings → Developer settings → Personal access tokens → Fine-grained tokens and click Generate new token.
  2. Under Repository access, choose Only select repositories and pick the repository your site builds from.
  3. Under Repository permissions, set Contents to Read and write. If you’ll publish via pull request, set Pull requests to Read and write too.
  4. Generate the token and copy it. Note its expiry date: publishing stops when the token lapses.

Step 2: Connect in ChatFeatured

Open an existing post in your repository to see its branch, folder, extension and front matter keys. Then go to Integrations → Git-based CMS and fill in: Optionally set up the two options below, then click Connect repository. ChatFeatured checks its access, the repository and the branch before saving. To change settings later, edit the form and click Update Connection. If the repository you want isn’t in the list, click Give the GitHub App access to it under it and add the repository on GitHub.

Publishing via pull request

By default, ChatFeatured commits straight to your branch. Turn on Publish via pull request if the branch is protected or you want to review posts first. Each publish then opens a pull request from a chatfeatured/... branch with a chatfeatured label, and the post goes live when you merge it. With Commit featured images off, front matter points to the image where ChatFeatured hosts it. Turn it on and set an Image Folder, such as static/blog/uploads, to commit each featured image into your repository. Front matter then uses a site-relative path like /blog/uploads/<slug>.jpg.

Front matter

Once you’re connected, the Front matter card lists the keys each post gets. Article fields without a key there use the defaults below. To match your theme, click Add field, type the key, and pick the article field under Value comes from. Rename a key in its box, or remove it with the trash icon. Changes save as you make them. When you first connect, ChatFeatured reads a few posts from your content folder and sets up a field for each key they use: the article field it matches, a value that’s the same on every post, or a choice set per article. It also sets the URL pattern when your posts’ paths end in their file names and you left it blank. The card says how many fields it set up, so check them before you publish. A choice only lists the values found in those posts, so add any others in its Choices box. To do this again later, for example after adding posts, click Read from your posts, untick anything you don’t want, and click Add. To write an article field under more than one key, such as the title as both title and heading, add a field for each key and pick the same article field for both. To put keys inside another key, use a dot. Fields named image.src and image.alt, taking the featured image and its alt text, write:
A key can’t hold a value and other keys at once, so point the featured image away from image before adding image.alt. To add a key with the same value on every post, such as _schema: default, add a field, choose Same value every time, and type the value. true, false and numbers keep their type, and an empty value writes the key with nothing after it. Choose Set per article instead for a key you fill in on each article under Additional Metadata. For a key that takes one value from a fixed list, such as a topic, set its type to Choice and type the choices separated by commas. Each article then picks one from a menu. A default file looks like this:

Publish an article

In the article editor, click Publish or Schedule and choose the Git-based CMS. The dialog has Publish Status, Author (optional), Tags and, for Schedule, a date, time and timezone. Save as Draft only appears once a front matter key, such as draft, takes the Draft flag. Without one, generators like Hugo treat every committed post as live. To change a published article, choose Unpublish from its menu in the Articles list, edit it, then publish again. The date stays the original publish date.

Troubleshooting

You aren’t an owner of the GitHub organization, so GitHub asked an owner to approve the ChatFeatured App. Once they approve it, click Connect with GitHub again.
ChatFeatured only connects repositories you can push to yourself on GitHub, and the list under GitHub Repository only shows those. Ask a repository admin for write access, or have someone who has it connect the repository.
Moving a GitHub App connection to another repository needs a fresh check that you can push to it. Click Give the GitHub App access to it, finish on GitHub, then pick the new repository and click Update Connection.
The App is installed, but not on this repository. Click Give the GitHub App access to it under the repository list, add the repository, and click Install or Save.
Someone removed or suspended the App in the organization’s GitHub settings. Click Give the GitHub App access to it to install it again, pick the repository from the list again, and click Update Connection.
The token expired, was revoked, or wasn’t copied in full. Generate a new one (Step 1), paste it into GitHub Access Token, and click Update Connection.
Enter the repository as owner/repo-name. Fine-grained tokens only see the repositories picked when they were created, so you may need a new token with the right repository selected.
Find the via ChatFeatured commit in your repository’s history, then check your CMS’s sync and build logs. Hugo hides future-dated posts by default, so check the date, and the draft key if you use one.

All integrations

Every CMS and analytics integration ChatFeatured supports.

Articles

How articles move from idea to published.
Last modified on December 4, 2026