pr_check: fix README

This commit is contained in:
Martine Lenders 2021-01-08 15:21:44 +01:00
parent 2e0e5a5477
commit 741aaf9a38
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -1,18 +1,17 @@
# About
This script checks if a Pull Request needs squashing or if it is waiting for
another Pull Request.
This script checks if a Pull Request needs squashing.
# Usage
```bash
./check.sh [<master branch>]
./check.sh [<branch>]
```
The optional `<master branch>` parameter refers to the branch the pull request's
branch branched from. The script will output all commits marked as squashable
from `HEAD` to the merge-base with `<master branch>`. The default for
`<master branch>` is `master`.
The `<branch>` parameter refers to the branch the pull request's branch branched
from. The script will output all commits marked as squashable from `HEAD` to the
merge-base with `<branch>`. The default for `<branch>` is `master`.
A commit is marked as squashable if it contains the keywords SQUASH or FIX
(case insensitive) within the first five characters of it's subject title.
A commit is marked as squashable if it contains the keywords SQUASH, FIX or
REMOVE ME (case insensitive) within the first five characters of it's subject
title.