From bf9b162c84cc0282ab886dd979bf3fdd5491c77c Mon Sep 17 00:00:00 2001 From: Ryan Albert Date: Tue, 19 Nov 2024 15:32:59 -0800 Subject: [PATCH] feat: adjust positioning of bumps label --- .github/workflows/workflow-executor.yaml | 2 +- action.yml | 2 +- internal/git/git.go | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workflow-executor.yaml b/.github/workflows/workflow-executor.yaml index a51c7ba8..f796c88d 100644 --- a/.github/workflows/workflow-executor.yaml +++ b/.github/workflows/workflow-executor.yaml @@ -191,7 +191,7 @@ jobs: - id: run-workflow name: Run Generation Workflow if: ${{ steps.check-label.outputs.short_circuit_label_trigger != 'true' }} - uses: speakeasy-api/sdk-generation-action@v15 + uses: speakeasy-api/sdk-generation-action@v15.33.1 with: speakeasy_version: ${{ inputs.speakeasy_version }} github_access_token: ${{ secrets.github_access_token }} diff --git a/action.yml b/action.yml index 4f1538d6..58a09038 100644 --- a/action.yml +++ b/action.yml @@ -169,7 +169,7 @@ outputs: description: "The directory the SDK target was generated to" runs: using: "docker" - image: "docker://ghcr.io/speakeasy-api/sdk-generation-action:v15" + image: "docker://ghcr.io/speakeasy-api/sdk-generation-action:v15.33.1" env: SPEAKEASY_API_KEY: ${{ inputs.speakeasy_api_key }} SPEAKEASY_SERVER_URL: ${{ inputs.speakeasy_server_url }} diff --git a/internal/git/git.go b/internal/git/git.go index 9da7e453..61cb4715 100644 --- a/internal/git/git.go +++ b/internal/git/git.go @@ -538,7 +538,6 @@ Based on: } if info.VersioningInfo.VersionReport != nil { - body += stripCodes(info.VersioningInfo.VersionReport.GetMarkdownSection()) // We keep track of explicit bump types and whether that bump type is manual or automated in the PR body if labelBumpType != nil && *labelBumpType != versioning.BumpCustom && *labelBumpType != versioning.BumpNone { @@ -552,9 +551,14 @@ Based on: } else { versionBumpMsg += string(versionbumps.BumpMethodAutomated) + " (automated)" } - body += "\n\n" + versionBumpMsg + body += fmt.Sprintf(`## Versioning + +%s +`, versionBumpMsg) } + body += stripCodes(info.VersioningInfo.VersionReport.GetMarkdownSection()) + } else { if len(info.OpenAPIChangeSummary) > 0 { body += fmt.Sprintf(`## OpenAPI Change Summary