Skip to content

Commit

Permalink
fix: bump type labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Nov 5, 2024
1 parent ffc355c commit 21bc42b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ jobs:
uses: smorimoto/tune-github-hosted-runner-network@v1
- id: run-workflow
name: Run Generation Workflow
uses: speakeasy-api/sdk-generation-action@v15
uses: speakeasy-api/sdk-generation-action@v15.32.5
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.32.5"
env:
SPEAKEASY_API_KEY: ${{ inputs.speakeasy_api_key }}
SPEAKEASY_SERVER_URL: ${{ inputs.speakeasy_server_url }}
Expand Down
4 changes: 4 additions & 0 deletions internal/actions/runWorkflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ func RunWorkflow() error {

var releaseInfo releases.ReleasesInfo
if runRes.GenInfo != nil {
if runRes.VersioningReport != nil {
fmt.Println("VERSIONING REPORTS")
fmt.Println(runRes.VersioningReport.Reports)
}
docVersion := runRes.GenInfo.OpenAPIDocVersion
resolvedVersion = runRes.GenInfo.SpeakeasyVersion

Expand Down
4 changes: 4 additions & 0 deletions internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,11 @@ Based on:
} else if info.SourceGeneration {
title = getGenSourcesTitlePrefix()
}
fmt.Println("VERSION LABEL STUFF")
fmt.Println(info.VersioningReport)
suffix, labels := PRMetadata(info.VersioningReport, labelTypes)
fmt.Println(suffix)
fmt.Println(labels)
title += suffix

if info.PR != nil {
Expand Down
1 change: 1 addition & 0 deletions internal/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func Run(g Git, pr *github.PullRequest, wf *workflow.Workflow) (*RunResult, map[
return nil, outputs, err
}
if len(changereport.Reports) == 0 {
fmt.Println("NO REPORTS")
// Assume it's not yet enabled (e.g. CLI version too old)
changereport = nil
}
Expand Down

0 comments on commit 21bc42b

Please sign in to comment.