keystatic icon indicating copy to clipboard operation
keystatic copied to clipboard

feature-request: add `prTitle` option to `config.storage.kind = github` for computing PR title

Open tresorama opened this issue 3 months ago • 1 comments

Current

Currently, when you create a PR from Keystatic the PR title is computed by keytatic (or by github).
There is no options to customize it.

Request Proposal

Adding a new prTitle option when config.storage.kind = github.
The new option can be a simple string, but i think using a function is more ready for future additions.


// in keystatic config

config({
  storage: {
    kind: 'github',
    prTitle: (options) => {

      /*
      options: {
        branchName: 'XXXXXXXX',
      }
      */

      return `feat: publish content` + options.branchName;
    }
  }
})

tresorama avatar Aug 16 '25 18:08 tresorama

related: https://github.com/Thinkmill/keystatic/issues/1033

stefanprobst avatar Aug 17 '25 06:08 stefanprobst