question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Customization of backported commit message

See original GitHub issue

Would it be possible to customize the message of the cherry-picked commits? Instead of Backport of ... in the body, I’d like to copy the original commit description, adding a trailing: (cherry picked from commit xxxxx).

See https://github.com/elastic/elasticsearch/commit/443d30888edc2e9fe71700eebf79dcf3814b0f01 as an example.

Would it be possible to expose the original commit message and sha as variables to be used inside the description?

Thanks,

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sqrencommented, Jan 11, 2021

Good idea. I’ll look into this!

0reactions
sqrencommented, Dec 26, 2021

Isn’t that going to create issues with Github? From what I can tell the PR body is used by GH for the commit message - at least that’s been my experience (not sure if it’s UI specific thing).

I don’t think that’s a problem. According to the docs Github will use the the commit message (and not the PR body) if there’s only a single commit. If there are multiple commits the PR title, and the list of commit messages will be used. So in both cases the “cherrypick reference” will always be included

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I backport a commit in git? - Stack Overflow
Rebase essentially rolls back all your changes on the current branch to the fork (or last rebase), copies over newer changes and then...
Read more >
Backports - OpenJDK Wiki
A. (often abbreviated to just. ) is a replica of an existing commit applied to a different repository. In most cases the backport...
Read more >
Allow to customize automatic backports · Issue #37 - GitHub
@renatocaval you can now specify the commit message from the body https://doc.mergify.io/actions.html#defining-the-commit-message or from the PR ...
Read more >
Backporting a change to a release branch - CockroachDB
Check the release notes in the commit messages, to ensure they are applicable to the branch (if a release note refers to another...
Read more >
Backporting - ownCloud Documentation
If the maintainer agrees, create a new branch based on the respective stable branch, cherry-pick the needed commits to that branch and create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found