Skip to content

Commit e9838a6

Browse files
authored
feat(ci): use generated title for regen PR (#91)
1 parent fee21e0 commit e9838a6

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:
@@ -240,10 +249,10 @@ jobs:
240249
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
241250
with:
242251
token: ${{ steps.app-token.outputs.token }}
243-
title: "chore: regenerate client from updated OpenAPI spec"
252+
title: "${{ inputs.title || 'chore: regenerate client from updated OpenAPI spec' }}"
244253
branch: openapi-update-${{ github.run_id }}
245-
commit-message: "chore: regenerate client from OpenAPI spec"
246-
body: "Auto-generated from updated HotData OpenAPI spec."
254+
commit-message: "${{ inputs.title || 'chore: regenerate client from OpenAPI spec' }}"
255+
body: "${{ inputs.summary || 'Auto-generated from updated HotData OpenAPI spec.' }}"
247256

248257
# Enable native auto-merge (squash). Branch protection on main gates the
249258
# merge on the test checks (scenario-parity, integration) plus the org

0 commit comments

Comments
 (0)