···115If you're submitting a PR with multiple commits, make sure each one is
116signed.
117118-For [jj](https://jj-vcs.github.io/jj/latest/) users, you can add this to
119-your jj config:
120121-```
122-ui.should-sign-off = true
123-```
124-125-and to your `templates.draft_commit_description`, add the following `if`
126-block:
127-128-```
129- if(
130- config("ui.should-sign-off").as_boolean() && !description.contains("Signed-off-by: " ++ author.name()),
131- "\nSigned-off-by: " ++ author.name() ++ " <" ++ author.email() ++ ">",
132- ),
133```
134135Refer to the [jj
136-documentation](https://jj-vcs.github.io/jj/latest/config/#default-description)
137for more information.
···115If you're submitting a PR with multiple commits, make sure each one is
116signed.
117118+For [jj](https://jj-vcs.github.io/jj/latest/) users, you can run the following command
119+to make it sign off commits in the tangled repo:
120121+```shell
122+# Safety check, should say "No matching config key..."
123+jj config list templates.commit_trailers
124+# The command below may need to be adjusted if the command above returned something.
125+jj config set --repo templates.commit_trailers "format_signed_off_by_trailer(self)"
0000000126```
127128Refer to the [jj
129+documentation](https://jj-vcs.github.io/jj/latest/config/#commit-trailers)
130for more information.