A easy way to send back port PRs #355
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#355
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tea pr backport <remote target branch> <pr index>
?backport of #<idx>\n\n---\n\n
Or
tea pr backport <pr index> <remote target branch>
?...
Others are the same as you.
This is my hack script to create a backport
It could be considerably improved by adding status in to the
.git/
directory etc.It should be possible to resume by checking the remote origin and current name for the current branch - if the branch is of the right format -
backport-$PR-$VERSION
then we check the remote - if the remote is still origin/release/$VERSION then we know we're at the point of pushing.... and so on ...
I can't claim it's the cleanest code, but you could take a look at cherry.
It basically shows you a list of upstream commits and lets you choose one to cherry-pick, then it pushes to a branch for you.
A small caveat, it only currently works with squash commits, because it only cherry-picks a single commit.