[Backport conflict] Add a change that will conflict #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 && | |
github.event.comment.user.id != 97796249 && | |
contains(github.event.comment.body, '/backport') | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BACKPORT_ACTION_TOKEN }} | |
- name: Backport | |
id: backport | |
uses: vermz99/backport-action@main | |
with: | |
copy_labels_pattern: .+ | |
github_token: ${{ secrets.BACKPORT_ACTION_TOKEN }} | |
merge_commits: skip | |
copy_assignees: true | |
copy_milestone: true | |
copy_requested_reviewers: true | |
experimental: > | |
{ | |
"detect_merge_method": true, | |
"conflict_resolution": "draft_commit_conflicts" | |
} | |
- 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 }}" |