Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/grassedge/git-pr-release-action

Create a pull-request for the production release.
https://github.com/grassedge/git-pr-release-action

github-actions pull-request release

Last synced: about 1 month ago
JSON representation

Create a pull-request for the production release.

Awesome Lists containing this project

README

        

# git-pr-release-action

Create a pull-request for the production release.

If your team adopts a workflow like 'GitLab flow', you may have two branches, such as production and pre-production (or staging and so on).
This action helps to list up pull-requests related to commits between production and pre-production. And creates (or updates) a new pull-request with the list in the body.

This action is inspired by [motemen/git-pr-release](https://github.com/motemen/git-pr-release) and [uiur/github-pr-release](https://github.com/uiur/github-pr-release).

## Usage

This Action subscribes to Push events.

```workflow
name: Create a release pull-request
on:
push:
branches:
- pre-production
jobs:
release_pull_request:
runs-on: ubuntu-latest
name: release_pull_request
steps:
- name: checkout
uses: actions/checkout@v1
- name: create-release-pr
uses: grassedge/[email protected]
with:
base: production
head: pre-production
token: ${{ secrets.GITHUB_TOKEN }}
labels: a,b,c
assign: true
```

**input**

- `owner`: Default is current reopsitory's owner.
- `repo`: Default is current reopsitory's name.
- `base`: **required** Base branch of the release pull-request.
- `head`: **required** Head branch of the release pull-request. Typically, it is the same as a subscribed branch.
- `assign`: If true, assign each pull-req's assignees to the release pull-req
- `labels`: Labels that is added to the release pull-request
- `template`: Path to the template you want to use.
- `tz`: Used to generate the version string.
- `token`: **required** `GITHUB_TOKEN` for creating a pull request.

Note that this action uses the template file in your repository. So you need 'checkout' step if you specify template option.

## Demo

![](./docs/screenshot.png)

## License

The scripts and documentation in this project are released under the [MIT License](LICENSE).