mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
bcd111bd12
Problem: Commits backport-merged to release branches are cherry-picked from the original commits in the PR from a fork repository, NOT the actual commit that are merged to neovim/neovim (HEAD). Therefore the commit reference in the commit message `cherry picked from commit ...` usually refers to a commit that does NOT exist in the repository, given that our preferred way of merging PR (rebasing, squashing, etc.) would rewrite commits. Solution: Turn on new feature 'detect_merge_method' of backport-action workflow.
23 lines
551 B
YAML
23 lines
551 B
YAML
name: backport
|
|
on:
|
|
pull_request_target:
|
|
types: [closed, labeled]
|
|
jobs:
|
|
backport:
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
name: Backport Pull Request
|
|
if: github.event.pull_request.merged
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Create backport PRs
|
|
uses: korthout/backport-action@v2
|
|
with:
|
|
# https://github.com/korthout/backport-action/pull/399
|
|
experimental: >
|
|
{
|
|
"detect_merge_method": true
|
|
}
|