このアクションはリリースブランチに対しての変更を検知して、開発ブランチまでその変更を反映させるプルリクを作成します。
Required リポジトリ名。
Required トークン。
Required マージされたリリースブランチ。
Required リリースブランチ検索用正規表現。
デフォルトは^release-\d+\.\d+\.\d+\.\d+$
Required プルリクのタイトル。
デフォルトはリリースブランチの変更を検知しました
プルリクの本文。
プロテクトブランチに絞り込むかどうか。
on:
pull_request:
branches:
- 'release-**'
types: [closed]
jobs:
pullreq_police:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
name: pullreq police
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
id: extract_branch
- name: pullreq_police
id: pullreq_police
uses: hayashima/[email protected]
with:
repo: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
current_branch: ${{ steps.extract_branch.outputs.branch }}
release_branch_regexp: '^release-\d+\.\d+\.\d+\.\d+$'
pr_title: 'リリースブランチの変更を検知しました'
pr_body: '速やかにマージしてください。'
protected: true