Skip to content

Commit ccc6970

Browse files
committed
feat(ci): use generated title for regen PR
1 parent 8fdc2c4 commit ccc6970

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:
@@ -159,7 +168,7 @@ jobs:
159168
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
160169
with:
161170
token: ${{ steps.app-token.outputs.token }}
162-
title: "chore: regenerate client from updated OpenAPI spec"
171+
title: "${{ inputs.title || 'chore: regenerate client from updated OpenAPI spec' }}"
163172
branch: openapi-update-${{ github.run_id }}
164-
commit-message: "chore: regenerate client from OpenAPI spec"
165-
body: "Auto-generated from updated HotData OpenAPI spec."
173+
commit-message: "${{ inputs.title || 'chore: regenerate client from OpenAPI spec' }}"
174+
body: "${{ inputs.summary || 'Auto-generated from updated HotData OpenAPI spec.' }}"

0 commit comments

Comments
 (0)