Skip to content

Commit

Permalink
feat: adjust positioning of bumps label
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Nov 19, 2024
1 parent 6e18b3c commit bf9b162
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
8 changes: 6 additions & 2 deletions internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit bf9b162

Please sign in to comment.