Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ljharb/rebase
GitHub Action to automatically rebase PRs
https://github.com/ljharb/rebase
Last synced: about 1 month 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 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-12T21:07:10.000Z (over 2 years ago)
- Last Synced: 2024-07-11T04:34:21.780Z (2 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
[![Build Status](https://api.cirrus-ci.com/github/cirrus-actions/rebase.svg)](https://cirrus-ci.com/github/cirrus-actions/rebase) [![](https://images.microbadger.com/badges/version/cirrusactions/rebase.svg)](https://microbadger.com/images/cirrusactions/rebase) [![](https://images.microbadger.com/badges/image/cirrusactions/rebase.svg)](https://microbadger.com/images/cirrusactions/rebase)
After installation simply comment `/rebase` to trigger the action:
![rebase-action](https://user-images.githubusercontent.com/989066/51547853-14a57b00-1e35-11e9-841d-33114f0f0bd5.gif)
## 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`.