Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/grassedge/git-pr-release-action
- Owner: grassedge
- Created: 2019-12-31T08:20:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T09:37:31.000Z (9 months ago)
- Last Synced: 2024-10-06T20:04:20.687Z (about 1 month ago)
- Topics: github-actions, pull-request, release
- Language: JavaScript
- Homepage:
- Size: 1.73 MB
- Stars: 15
- Watchers: 1
- Forks: 9
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
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).