https://github.com/ljharb/rebase
GitHub Action to automatically rebase PRs
https://github.com/ljharb/rebase
Last synced: 8 months ago
JSON representation
GitHub Action to automatically rebase PRs
- Host: GitHub
- URL: https://github.com/ljharb/rebase
- Owner: ljharb
- License: mit
- Fork: true (cirrus-actions/rebase)
- Created: 2019-04-09T06:30:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-12T21:07:10.000Z (over 3 years ago)
- Last Synced: 2024-10-22T03:26:44.231Z (9 months ago)
- Language: Shell
- Size: 15.6 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub action to automatically rebase PRs
[](https://cirrus-ci.com/github/cirrus-actions/rebase) [](https://microbadger.com/images/cirrusactions/rebase) [](https://microbadger.com/images/cirrusactions/rebase)
After installation simply comment `/rebase` to trigger the action:

## Installation
To configure the action simply add the following lines to your `.github/main.workflow` workflow file:
```
workflow "Automatic Rebase" {
on = "issue_comment"
resolves = "Rebase"
}action "Rebase" {
uses = "docker://cirrusactions/rebase:latest"
secrets = ["GITHUB_TOKEN"]
}
```## Restricting who can call the action
It's possible to use `author_association` field of a comment to restrict who can call the action and skip the rebase for others. Simply add the following expression to the `if` statement in your workflow file: `github.event.comment.author_association == 'MEMBER'`. See [documentation](https://developer.github.com/v4/enum/commentauthorassociation/) for a list of all available values of `author_association`.