Skip to content

case(5): Rebase and merge #31

case(5): Rebase and merge

case(5): Rebase and merge #31

name: Backport on issue_comment[created]
on:
issue_comment:
types: [created]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport
runs-on: ubuntu-latest
# Only run on comment containing `/backport`
if: >
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '/backport')
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_KORTHOUT }}
- name: Backport
id: backport
uses: tasso94/backport-action@main
with:
copy_labels_pattern: .+
github_token: ${{ secrets.PAT_KORTHOUT }}
merge_commits: skip
copy_assignees: true
copy_milestone: true
copy_requested_reviewers: true
experimental: >
{
"detect_merge_method": true,
"remote_owner": "backport-action",
"remote_repo": "backport-action-test"
}
- name: Print was_successful output
run: echo "${{ steps.backport.outputs.was_successful }}"
- name: Print was_successful_by_target output
run: echo "${{ steps.backport.outputs.was_successful_by_target }}"