Skip to content

Commit

Permalink
Merge pull request #90 from petercorrea/update-docs
Browse files Browse the repository at this point in the history
updated docs to include --squashed flag
  • Loading branch information
onk authored Oct 12, 2022
2 parents 2fe268a + f4afb48 commit 0fda096
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
git-pr-release <a href="http://badge.fury.io/rb/git-pr-release"><img src="https://badge.fury.io/rb/[email protected]" alt="Gem Version" height="18"></a>
==============
# git-pr-release <a href="http://badge.fury.io/rb/git-pr-release"><img src="https://badge.fury.io/rb/[email protected]" alt="Gem Version" height="18"></a>

Creates a "release pull request", whose body consists of features list or
pull requests that are to be released into production. It's especially useful for QA and
Expand All @@ -11,13 +10,26 @@ pull request.

Suitable for branching strategy like below (similar to git-flow):

* Feature branches are first merged into "staging" (or release, development)
branch.
* Then the staging branch is merged into "production" branch, which is for
production release.
- Feature branches are first merged into "staging" (or release, development)
branch.
- Then the staging branch is merged into "production" branch, which is for
production release.

Configuration
-------------
## Usage

`git-pr-release`: default

`git-pr-release --squashed`: include PRs containing squashed commits.

`git-pr-release --overwrite-description`: generate a fresh PR description.

`git-pr-release -n` | `git-pr-release --dry-run`: perform a dry run; does not update PR.

`git-pr-release --no-fetch`: Do not fetch from remote repo before determining target PRs (CI friendly).

`git-pr-release --json`: Show data of target PRs in JSON format.

## Configuration

All configuration are taken using `git config`. You can write these variables
in file `.git-pr-release` (instead of `.git/config` or `~/.gitconfig`) to share project-wise configuration to other
Expand Down Expand Up @@ -95,14 +107,12 @@ You can specify this value by `GIT_PR_RELEASE_SSL_NO_VERIFY` to `1`.

If not specified, verify SSL certificate always.

Errors and exit statuses
------------------------
## Errors and exit statuses

### No pull requests to be released

exit status is 1.

Author
------
## Author

motemen <[email protected]>, original in-house version written by @hitode909.

0 comments on commit 0fda096

Please sign in to comment.