Skip to content

campaigns: allow user to set git commit author

Warren Gifford requested to merge cp/campaigns-author-details into main

Created by: chrispine

This is the src-cli side of the fix for #12769. (back-end PR)

It implements the first part of RFC 229, so campaign specs can have changeset templates that now look like:

changesetTemplate:
  title: Hello World
  body: My first campaign
  branch: hello-world # Push the commit to this branch.
  commit:
    message: Append Hello World to all README.md files
    author:
      name: Chris Pine
      email: [email protected]
  published: true

Issues

  • I don't know how to say "this version of src-cli goes with that version of the back-end".

Future work

  • Consider: instead of just going with the default author, check for local git config and use that. (But does that behave in ways we don't like: if I create a campaign without specifying an author, then you modify the campaign spec on your machine and apply it... would it change the commit author? Would we want it to?)

Merge request reports

Loading