Skip to content

"Open a PR" action? #3018

Answered by sileht
defung asked this question in Q&A
Aug 13, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

What you call branch_name is the attribute head, so you can write with a regex something like head~=release/.*.

We don't have a create_pr but we have seen you can use backport or copy action. And yes It uses cherry-pick under the hood and doesn't preserve sha1 of commits.

I don't see how we can keep the same sha1 with your workflow, Git needs that the two branches have exactly the same history to do that or you need to use a merge commit and may embark commits that are not part of the initial pull request.

Mergify is focused on pull requests, while you want something to keep your main branch in sync with your release branch.

Maybe you can use something https://github.com/wei/pull, you can…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@defung
Comment options

Answer selected by defung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants