Linear does this, too. It provides a button that copies a branch name to the clipboard based on the ticket id/name.