-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do i actually use this? #37
Comments
Tried on a private repo. definitely does not work What i use as
|
Worked for me. 🤷🏻♂️ Here is my 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 code into workspace directory
uses: actions/checkout@v2
with:
fetch-depth: 0
# Basic use case example
- 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: 'Failed! Cannot do fast forward!'
staging_branch: 'main'
production_branch: 'prod' |
@demisx your action worked for me too. 😃 |
My guess is that, if your
from this repo as well. Otherwise, there is no action, so it does nothing. Or worse, if you have your own |
i copied your existing workflow word for word
but nothing happened
as
fast-forward.yml
then i type/fast-forward
in a pull request as comment. nothing happenedThe text was updated successfully, but these errors were encountered: