Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow customizing commit messages #1033

Open
stefanprobst opened this issue Mar 24, 2024 · 2 comments
Open

allow customizing commit messages #1033

stefanprobst opened this issue Mar 24, 2024 · 2 comments
Labels
enhancement New feature or request storage:github Storage configuration is "github" kind.

Comments

@stefanprobst
Copy link
Contributor

when using github storage mode, it would be great to be able to customize the commit messages.

i think these are currently set here and here.

@stefanprobst
Copy link
Contributor Author

would you accept a pr to support an additional storage config option?

{
  kind: "github",
  repo: { owner: "stefanprobst", name: "keystatic-test" },
  commitMessages: {
    update({ path }) {
      return `content: update ${path}`
    },
    delete({ path }) {
      return `content: delete ${path}`
    },
  }
}

see stefanprobst@23e2f75

@ducan-ne
Copy link

ducan-ne commented Apr 1, 2024

+1 for this, I want to skip add prefix "[CI Skip]" to skipping CI build, unnecessary build
About api. I only need something like this

{
  kind: "github",
  repo: { owner: "stefanprobst", name: "keystatic-test" },
  commitMessageTemplate: '[CI Skip] Update {{path}}'
}

@jossmac jossmac added enhancement New feature or request storage:github Storage configuration is "github" kind. labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request storage:github Storage configuration is "github" kind.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants