Skip to content

Commit

Permalink
Create fast_forward_merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-revay authored Sep 18, 2023
1 parent d0a81e3 commit cf29444
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/fast_forward_merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
issue_comment:
types: [created]

jobs:
fast_forward_job:
name: Fast Forward Merge
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/fast-forward')
runs-on: ubuntu-latest
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v2
# Basic use case example
- name: Fast Forward PR
id: ff-action
uses: ./
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
success_message: 'Success! Fast forwarded ***target_base*** to ***source_head***! ```git checkout target_base && git merge source_head --ff-only``` '
failure_message: 'Failed! Cannot do fast forward!'

0 comments on commit cf29444

Please sign in to comment.