Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-circle

GitHub Action

git-issue-release

v1.0.1

git-issue-release

check-circle

git-issue-release

Automatically generate PRs diff from previous release

Installation

Copy and paste the following snippet into your .yml file.

              

- name: git-issue-release

uses: kouki-dan/[email protected]

Learn more about this action in kouki-dan/git-issue-release

Choose a version

git-issue-release

This action automatically creates a release issue which includes pull requests after the latest release. It's inspired by git-pr-release.

release

Inputs

release-tag-pattern

Required Prefix of release tag written in regex. git-issue-release uses it to find the latest release. Default "^v" (starts with v).

release-label

Required Label of release issue. git-issue-release uses it to determine an issue as a release issue. An issue created by git-issue-release has these labels. Default "release".

If you want to add multiple labels, you can use a comma-separated string like release,appname

CAUTION: Labels are not automatically created. Please create labels before using them.

release-issue-title

Issue title for release issue.

release-issue-title-published

Issue title after published. :tag_name: is replaced by a released tag name.

Example usage

Full example: https://github.com/kouki-dan/git-issue-release/blob/main/.github/workflows/git-issue-release.yml

name: git-issue-release

on:
  pull_request: # Automatically create or update issues when pull request is merged.
    types: [closed]
  release: # Automatically close the latest issue when release is published.
    types: [published]

jobs:
  action:
    runs-on: ubuntu-latest
    steps:
      - name: git-issue-release
        uses: kouki-dan/git-issue-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          release-tag-pattern: ^v # Use it to find the latest release. `^v` means starts with v.
          release-label: "release" # Use it to find release issues. Labels are not created automatically, so create them before use it.