Skip to content

Commit dce28b6

Browse files
authored
feat(ci): use generated title for regen PR (#28)
1 parent 4815b15 commit dce28b6

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/regenerate.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ name: Regenerate Client
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
title:
7+
description: PR title, auto-generated from the spec diff in www.
8+
required: false
9+
type: string
10+
summary:
11+
description: PR body summarizing the spec changes.
12+
required: false
13+
type: string
514

615
jobs:
716
regenerate:
@@ -59,7 +68,7 @@ jobs:
5968
uses: peter-evans/create-pull-request@v8.1.1
6069
with:
6170
token: ${{ steps.app-token.outputs.token }}
62-
title: "chore: regenerate client from updated OpenAPI spec"
71+
title: "${{ inputs.title || 'chore: regenerate client from updated OpenAPI spec' }}"
6372
branch: openapi-update-${{ github.run_id }}
64-
commit-message: "chore: regenerate client from OpenAPI spec"
65-
body: "Auto-generated from updated HotData OpenAPI spec."
73+
commit-message: "${{ inputs.title || 'chore: regenerate client from OpenAPI spec' }}"
74+
body: "${{ inputs.summary || 'Auto-generated from updated HotData OpenAPI spec.' }}"

0 commit comments

Comments
 (0)