https://github.com/apn-pucky/fast-forward-action
https://github.com/apn-pucky/fast-forward-action
action bot fast forward git github-action github-actions
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/apn-pucky/fast-forward-action
- Owner: APN-Pucky
- Created: 2022-08-01T13:14:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-11T05:32:41.000Z (almost 3 years ago)
- Last Synced: 2024-10-15T16:25:41.668Z (over 1 year ago)
- Topics: action, bot, fast, forward, git, github-action, github-actions
- Homepage:
- Size: 53.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fast-forward-action
Adds a fast-forward label to PRs and fast-forwards them on `/fast-forward` comment.
## Use case
Github Web UI does not allow fast-forwarding of PRs:
https://stackoverflow.com/questions/60597400/how-to-do-a-fast-forward-merge-on-github
This disallows a linear commit history with a delayed stable branch.
## Inputs
| Input | Description |
| ----------- | ----------- |
| GITHUB_TOKEN | Automatically provided token, that can be used to authenticate on behalf of the GitHub action, with permissions limited to the repository that contains your workflow |
| SSH_PRIVATE_KEY | Deploy key for push. Must be set in the repository settings. This is used by the action to push the fast-forwarded branch/commit/PR. |
## Workflow YML
The Action must be run on triggers to keep the labels up-to-date and run the fast-forward on command.
```yml
name: Fast-Forward
on:
issue_comment:
types: [created]
push:
pull_request:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: APN-Pucky/fast-forward-action@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_PRIVATE_KEY: ${{ secrets.GH_SSH }}
```
## Examples
For working examples checkout the `fast-forward` tagged PRs.
They have been merged via the `/fast-forward` command.
* This repo
* https://github.com/APN-Pucky/smpl/pulls?q=is%3Apr+is%3Aclosed
* https://github.com/APN-Pucky/HEPi/pulls