keystatic
keystatic copied to clipboard
feature-request: add `prTitle` option to `config.storage.kind = github` for computing PR title
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;
}
}
})
related: https://github.com/Thinkmill/keystatic/issues/1033