-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds fast-forward action and updates to pre-commit
- Loading branch information
1 parent
ab0ebae
commit 992e6e3
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Fast Forward PR | ||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
fast_forward_job: | ||
name: Fast Forward | ||
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: endre-spotlab/[email protected] | ||
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! - try merging the target back into source first.' |
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