Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/taixw2/require-rebase-action

This action is used to check if a git rebase was performed whe pull request
https://github.com/taixw2/require-rebase-action

Last synced: 5 days ago
JSON representation

This action is used to check if a git rebase was performed whe pull request

Awesome Lists containing this project

README

        

# require-rebase-action

The purpose of this action is to get team members to use rebase instead of merge whenever possible.

## Uses

```
name: 'require-rebase'
on:
pull_request:

env:
BASE: main # rebase branch name
REMOTE: origin # remote name

jobs:
checke-rebase: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2

- name: 'Fetch'
run: |
git fetch ${{ env.REMOTE }} ${{ env.BASE }}

- name: 'Check Rebase'
uses: taixw2/require-rebase-action
with:
base: ${{ env.BASE }}
origin: ${{ env.REMOTE }}

```