Skip to content

Commit

Permalink
ci: add fast forward action
Browse files Browse the repository at this point in the history
  • Loading branch information
Sceat committed Sep 16, 2024
1 parent cdf5248 commit fe77079
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/fast-forward.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: FastForward

on:
issue_comment:
types: [created]

jobs:
fast_forward_job:
name: Fast Forward
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/merge')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fast Forward PR
id: ff-action
uses: endre-spotlab/fast-forward-js-action@master
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: 'Unable to merge, is this PR ready and approved ?'

0 comments on commit fe77079

Please sign in to comment.