Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/taixw2/require-rebase-action
- Owner: taixw2
- License: mit
- Created: 2021-01-14T13:08:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-25T20:04:39.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T10:45:28.654Z (13 days ago)
- Language: TypeScript
- Size: 650 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 namejobs:
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 }}```