Skip to content

feat: Changes to generate sdk changelog in releases.md and pr description #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 131 commits into from
Aug 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
342f779
changes to test changelog in sdk-action
kanwardeep007 Jun 18, 2025
ba5c1de
log things in the sdk action regarding what files and content is gene…
kanwardeep007 Jun 18, 2025
f3be7e7
revert commit just LOGS
kanwardeep007 Jun 19, 2025
4d8536c
chore: log content of changelog after speakeasy run has been run
kanwardeep007 Jun 19, 2025
3e7dc3e
add more logging
kanwardeep007 Jun 19, 2025
03eb83f
chore: add logs
kanwardeep007 Jun 20, 2025
8f1d676
log mode
kanwardeep007 Jun 20, 2025
b5fe775
add different log
kanwardeep007 Jun 20, 2025
1cf9580
chore: add more logs
kanwardeep007 Jun 20, 2025
28608de
more logs
kanwardeep007 Jun 20, 2025
5d89c72
more logs
kanwardeep007 Jun 20, 2025
7274694
add changes to releases file. So that releases.md file is changed
kanwardeep007 Jun 24, 2025
de1e156
chore: add logs
kanwardeep007 Jun 24, 2025
d70a708
add log
kanwardeep007 Jun 24, 2025
53c1001
chore more logs
kanwardeep007 Jun 24, 2025
b4e6e09
fix bug
kanwardeep007 Jun 24, 2025
0d88024
more logs for debugging
kanwardeep007 Jun 24, 2025
cc141ee
chore more logs
kanwardeep007 Jun 24, 2025
132a89f
chore: fix the bug for generating releases
kanwardeep007 Jun 24, 2025
46758ac
chore
kanwardeep007 Jun 24, 2025
00db5bb
chore: Add more logs
kanwardeep007 Jun 24, 2025
4094340
chore: logs
kanwardeep007 Jun 24, 2025
2f16cd5
change sdk changelog in releases.md
kanwardeep007 Jun 25, 2025
be13e11
change rendering in releases.md
kanwardeep007 Jun 25, 2025
ec07a28
edit release message, also add tests. Now fix the commented tests
kanwardeep007 Jun 25, 2025
4041f6c
remove unnecessary logs and clean pr for review
kanwardeep007 Jun 25, 2025
1d2d060
use local speakeasy
kanwardeep007 Jul 3, 2025
e4277f6
refactor log statements and fix 1 test
kanwardeep007 Jul 3, 2025
89c802c
refactor method to generate release notes , make it easy to read
kanwardeep007 Jul 3, 2025
c01acf1
add comments
kanwardeep007 Jul 3, 2025
6d59d69
refactor: introduce sdkchangelog map in ReleasesInfo
kanwardeep007 Jul 3, 2025
74bcc68
remove unnecessary \n
kanwardeep007 Jul 3, 2025
9fc5c41
chore: fix tests, add parsing logic for language changelog to release…
kanwardeep007 Jul 4, 2025
eb4b5d2
update commit message with changelog release information
kanwardeep007 Jul 4, 2025
d8e47f5
gate sdk changelog, remove unnecessary code
kanwardeep007 Jul 4, 2025
f27ea6f
refacotr
kanwardeep007 Jul 4, 2025
1b3369d
new env variable, rename variable
kanwardeep007 Jul 4, 2025
2322765
fix bug by refactoring code to generate release info string format us…
kanwardeep007 Jul 4, 2025
c4f7fab
remove unused code
kanwardeep007 Jul 4, 2025
68fdc37
only generate for languages which are actually generated and rename e…
kanwardeep007 Jul 4, 2025
34dd0c1
adding new info for releases new format
kanwardeep007 Jul 4, 2025
9a829dd
rename stuff
kanwardeep007 Jul 5, 2025
c6d57f0
update pr with new content
kanwardeep007 Jul 6, 2025
6d6cc9c
chore: new pr description should be all hooked up properly
kanwardeep007 Jul 6, 2025
97fb393
use the new commit message when env variable is set. Fetch the messag…
kanwardeep007 Jul 7, 2025
ee209bf
reuse sorted languages
kanwardeep007 Jul 8, 2025
13a4297
adding new release_v2 which uses new content for release changelog
kanwardeep007 Jul 8, 2025
1ee9639
add tests for different languags
kanwardeep007 Jul 9, 2025
12c2546
add more details to tests
kanwardeep007 Jul 9, 2025
c2df581
changes that make code simpler
kanwardeep007 Jul 9, 2025
ae3838f
fix parsing and tests
kanwardeep007 Jul 9, 2025
995e5b9
fix tests and parsing in v2
kanwardeep007 Jul 9, 2025
3f3513f
add more resiliency to parsing
kanwardeep007 Jul 9, 2025
f0c7bff
Use the releases v2 for releases. add it behind env variable flag
kanwardeep007 Jul 9, 2025
a1d341b
add comment
kanwardeep007 Jul 9, 2025
4b4d2e7
get rid of sdk changelog that was inserted in v1 of releases. Now new…
kanwardeep007 Jul 9, 2025
895d7ff
same as previous message. take all new logic for v2 inside v2
kanwardeep007 Jul 9, 2025
5836035
make v1 like before undoing more changes
kanwardeep007 Jul 9, 2025
5776ce9
minor improvements
kanwardeep007 Jul 9, 2025
83af57b
remove comparison with zero value and use it as pointer
kanwardeep007 Jul 14, 2025
60079a7
remove commit headings
kanwardeep007 Jul 14, 2025
3bb7dc2
refactor code
kanwardeep007 Jul 14, 2025
7b2cab1
add comment
kanwardeep007 Jul 14, 2025
bc98a15
refactor
kanwardeep007 Jul 15, 2025
9dc407a
refactor code
kanwardeep007 Jul 15, 2025
36b92a0
refactor
kanwardeep007 Jul 15, 2025
2affd74
extract old pr creation into another method
kanwardeep007 Jul 15, 2025
f4cc194
refactor
kanwardeep007 Jul 15, 2025
07ee39f
refactor
kanwardeep007 Jul 15, 2025
5b3f51f
use new changelog for newer workflows using ge.lock
kanwardeep007 Jul 15, 2025
8abf089
refactor
kanwardeep007 Jul 15, 2025
304db2c
using sdk-gen-config containing release info for different targets
kanwardeep007 Jul 16, 2025
493cab5
bug. stopped writing file in original update release file method
kanwardeep007 Jul 16, 2025
6dfc8f9
use release notes from gen.lock file
kanwardeep007 Jul 16, 2025
8dfdf3b
remove releasesv2 because its not needed now
kanwardeep007 Jul 16, 2025
aa99366
add comments
kanwardeep007 Jul 16, 2025
5eae1bd
remove local sdk-config
kanwardeep007 Jul 16, 2025
945eaad
remove code for generating pr title. we use the old pr title
kanwardeep007 Jul 16, 2025
b982e04
add comments
kanwardeep007 Jul 16, 2025
53b9898
Fix the old message. There was some unintended spaces introduced. Als…
kanwardeep007 Jul 16, 2025
cb3d5ed
bug. old message had spaces fix them
kanwardeep007 Jul 16, 2025
97c7512
Fix spaces introduced by mistake in old message
kanwardeep007 Jul 16, 2025
0577a85
Starting changes based on thomas comments. New trajectory
kanwardeep007 Jul 18, 2025
e5048e2
use commit message using versioniong report
kanwardeep007 Jul 18, 2025
5ff7326
add comment
kanwardeep007 Jul 18, 2025
9364d27
use new changelogs driven by cli, and other refactoring
kanwardeep007 Jul 18, 2025
cb9b382
add comments
kanwardeep007 Jul 29, 2025
fda3c48
refactor remove releasesinfo which was not used in commit and push me…
kanwardeep007 Jul 29, 2025
8b1277d
remove unnecessary code and refactor log lines
kanwardeep007 Jul 29, 2025
e08bb12
remove code to fetch commit reports from disk. Instead extend version…
kanwardeep007 Jul 29, 2025
589781c
refactor code and use release notes from gen.lock when generating rel…
kanwardeep007 Jul 29, 2025
987b192
change commit message and add debug statement instead of info
kanwardeep007 Jul 29, 2025
a173fd7
refactor code and rename variables
kanwardeep007 Jul 29, 2025
afa971f
add logs for old flow
kanwardeep007 Jul 30, 2025
ff4455b
refactor code
kanwardeep007 Jul 31, 2025
61ca763
fix bug. use release notes (which is not string) from target
kanwardeep007 Jul 31, 2025
cb3f411
add comment and remove geninfo which was not used anywhere
kanwardeep007 Jul 31, 2025
aa13a22
refactor code
kanwardeep007 Jul 31, 2025
328a742
bug nil poiinter bug fix
kanwardeep007 Jul 31, 2025
3c79a41
refactor code and edit comments
kanwardeep007 Jul 31, 2025
73709b2
add comment in release action
kanwardeep007 Jul 31, 2025
2c3662c
remove unused code and add a comment in code
kanwardeep007 Jul 31, 2025
5a9440d
refactor
kanwardeep007 Jul 31, 2025
b902db1
make env variable more constrained
kanwardeep007 Jul 31, 2025
1b8ba7c
dead code
kanwardeep007 Aug 5, 2025
c6821bf
revert code changes that were not required and make it same as main b…
kanwardeep007 Aug 5, 2025
00e6d7b
Merge branch 'main' of https://github.com/speakeasy-api/sdk-generatio…
kanwardeep007 Aug 5, 2025
faf1fff
update go.mod
kanwardeep007 Aug 5, 2025
184fc89
REVERT THIS change before deploying
kanwardeep007 Aug 5, 2025
4992305
REVERt add custom message
kanwardeep007 Aug 5, 2025
b55b8e0
Revert "REVERT THIS change before deploying"
kanwardeep007 Aug 5, 2025
3533a92
CHANGING TAG
kanwardeep007 Aug 5, 2025
1a63e80
update action.yml
kanwardeep007 Aug 5, 2025
c2711b8
update tag version
kanwardeep007 Aug 5, 2025
9abf40f
chore: allow change to run on ryan repo
kanwardeep007 Aug 6, 2025
9d9b887
REVERT
kanwardeep007 Aug 6, 2025
6a0282f
change in pr reports
kanwardeep007 Aug 7, 2025
a267ba5
fix speakeasy cli line in PR
kanwardeep007 Aug 7, 2025
f94afc6
add ability to run the action in debug mode
kanwardeep007 Aug 7, 2025
46d08cc
Revert "add ability to run the action in debug mode"
kanwardeep007 Aug 7, 2025
5bcf931
set debug env to true
kanwardeep007 Aug 7, 2025
db8631f
REVERT all logs
kanwardeep007 Aug 7, 2025
e4fd968
add more logs
kanwardeep007 Aug 7, 2025
420c2f6
set flag based on environment
kanwardeep007 Aug 7, 2025
40ef830
update release body to contain necessary information
kanwardeep007 Aug 7, 2025
f809700
update release message
kanwardeep007 Aug 7, 2025
bf7bdf4
fortmat release message
kanwardeep007 Aug 8, 2025
4ea0748
remove log lines
kanwardeep007 Aug 11, 2025
6e8f2fe
logging changes
kanwardeep007 Aug 11, 2025
65809b8
Change back to v15 version
kanwardeep007 Aug 11, 2025
e94be28
remove logs
kanwardeep007 Aug 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ require (
github.com/pb33f/libopenapi v0.15.14
github.com/pkg/errors v0.9.1
github.com/speakeasy-api/git-diff-parser v0.0.3
github.com/speakeasy-api/sdk-gen-config v1.31.2
github.com/speakeasy-api/sdk-gen-config v1.31.3
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.15.4
github.com/speakeasy-api/versioning-reports v0.6.0
github.com/speakeasy-api/versioning-reports v0.6.1
github.com/stretchr/testify v1.9.0
golang.org/x/exp v0.0.0-20240213143201-ec583247a57a
golang.org/x/oauth2 v0.11.0
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ github.com/skeema/knownhosts v1.2.1 h1:SHWdIUa82uGZz+F+47k8SY4QhhI291cXCpopT1lK2
github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo=
github.com/speakeasy-api/git-diff-parser v0.0.3 h1:LL12d+HMtSyj6O/hQqIn/lgDPYI6ci/DEhk0la/xA+0=
github.com/speakeasy-api/git-diff-parser v0.0.3/go.mod h1:P46HmmVVmwA9P8h2wa0fDpmRM8/grbVQ+uKhWDtpkIY=
github.com/speakeasy-api/sdk-gen-config v1.31.2 h1:5xquHCkMr/IVt/EUfU0wsu8pj5EFFm3Q7/398kZOCWI=
github.com/speakeasy-api/sdk-gen-config v1.31.2/go.mod h1:e9PjnCRHGa4K4EFKVU+kKmihOZjJ2V4utcU+274+bnQ=
github.com/speakeasy-api/sdk-gen-config v1.31.3 h1:RDFVcOMzb9rysPhXLFOGEKlX70cjQzRnlyXP5NnL/iY=
github.com/speakeasy-api/sdk-gen-config v1.31.3/go.mod h1:e9PjnCRHGa4K4EFKVU+kKmihOZjJ2V4utcU+274+bnQ=
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.15.4 h1:lPVNakwHrrRWRaNIdIHE6BK7RI6B/jpdwbtvI/xPEYo=
github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.15.4/go.mod h1:b4fiZ1Wid0JHwwiYqhaPifDwjmC15uiN7A8Cmid+9kw=
github.com/speakeasy-api/versioning-reports v0.6.0 h1:oLokEQ7xnDXqWAQk60Sk+ifwYaRbq3BrLX2KyT8gWxE=
github.com/speakeasy-api/versioning-reports v0.6.0/go.mod h1:LW5FABrvi5SBbeiD3HJYw0JZYe6Rw2Xna59pFJ2BmLI=
github.com/speakeasy-api/versioning-reports v0.6.1 h1:pvuvA1IFO7PVlpdFh7J2Y3hENDzhISFdNy0NVg/Cxb4=
github.com/speakeasy-api/versioning-reports v0.6.1/go.mod h1:LW5FABrvi5SBbeiD3HJYw0JZYe6Rw2Xna59pFJ2BmLI=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
Expand Down
38 changes: 31 additions & 7 deletions internal/actions/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ func Release() error {
if accessToken == "" {
return errors.New("github access token is required")
}
repoURL := os.Getenv("GITHUB_REPOSITORY")
if strings.Contains(strings.ToLower(repoURL), "speakeasy-api") || strings.Contains(strings.ToLower(repoURL), "speakeasy-sdks") || strings.Contains(strings.ToLower(repoURL), "ryan-timothy-albert") {
os.Setenv("SDK_CHANGELOG_JULY_2025", "true")
}

g, err := initAction()
if err != nil {
Expand All @@ -31,9 +35,11 @@ func Release() error {
dir := "."
usingReleasesMd := false
var providesExplicitTarget bool
logging.Info("specificTarget: %s", environment.SpecifiedTarget())
if specificTarget := environment.SpecifiedTarget(); specificTarget != "" {
workflow, err := configuration.GetWorkflowAndValidateLanguages(true)
if err != nil {
logging.Error("error: %v", err)
return err
}
if target, ok := workflow.Targets[specificTarget]; ok {
Expand All @@ -42,11 +48,12 @@ func Release() error {
}

dir = filepath.Join(environment.GetWorkingDirectory(), dir)

providesExplicitTarget = true
}
}

logging.Info("providesExplicitTarget is set as: %v", providesExplicitTarget)

if !providesExplicitTarget {
// This searches for files that would be referenced in the GH Action trigger
files, err := g.GetCommitedFiles()
Expand All @@ -61,23 +68,40 @@ func Release() error {
}

dir, usingReleasesMd = GetDirAndShouldUseReleasesMD(files, dir, usingReleasesMd)

}

var languages map[string]releases.LanguageReleaseInfo
var latestRelease *releases.ReleasesInfo
var targetSpecificReleaseNotes releases.TargetReleaseNotes = nil
oldReleaseContent := ""

// Old way of getting release Info (uses RELEASES.md)
if usingReleasesMd {
logging.Info("Using RELEASES.md to get release info")
latestRelease, err = releases.GetLastReleaseInfo(dir)
if err != nil {
return err
}
} else {
logging.Info("Using gen lockfile to get release info")
latestRelease, err = releases.GetReleaseInfoFromGenerationFiles(dir)
if err != nil {
fmt.Printf("Error getting release info from generation files: %v\n", err)
return err
}
// targetSpecificReleaseNotes variable is present only if SDK_CHANGELOG_JULY_2025 env is true
targetSpecificReleaseNotes, err = releases.GetTargetSpecificReleaseNotes(dir)
if err != nil {
fmt.Printf("Error getting target specific release notes: %v\n", err)
}

}
if err != nil {
return err
}
languages = latestRelease.Languages
oldReleaseContent = latestRelease.String()

outputs := map[string]string{}
for lang, info := range latestRelease.Languages {
for lang, info := range languages {
outputs[utils.OutputTargetRegenerated(lang)] = "true"
outputs[utils.OutputTargetDirectory(lang)] = info.Path
}
Expand All @@ -86,7 +110,7 @@ func Release() error {
return err
}

if err := g.CreateRelease(*latestRelease, outputs); err != nil {
if err := g.CreateRelease(oldReleaseContent, languages, outputs, targetSpecificReleaseNotes); err != nil {
return err
}

Expand All @@ -95,7 +119,7 @@ func Release() error {
}

if os.Getenv("SPEAKEASY_API_KEY") != "" {
if err = addCurrentBranchTagging(g, latestRelease.Languages); err != nil {
if err = addCurrentBranchTagging(g, languages); err != nil {
return errors.Wrap(err, "failed to tag registry images")
}
}
Expand Down
37 changes: 30 additions & 7 deletions internal/actions/runWorkflow.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package actions

import (
"encoding/json"
"fmt"
"os"
"strings"
Expand All @@ -9,7 +10,6 @@ import (
"github.com/pkg/errors"
"github.com/speakeasy-api/sdk-generation-action/internal/utils"
"github.com/speakeasy-api/sdk-generation-action/internal/versionbumps"
"github.com/speakeasy-api/versioning-reports/versioning"

"github.com/speakeasy-api/sdk-generation-action/internal/configuration"
"github.com/speakeasy-api/sdk-generation-action/internal/git"
Expand Down Expand Up @@ -102,6 +102,12 @@ func RunWorkflow() error {
anythingRegenerated := false

var releaseInfo releases.ReleasesInfo
runResultInfo, err := json.MarshalIndent(runRes, "", " ")
if err != nil {
logging.Debug("failed to marshal runRes : %s\n", err)
} else {
logging.Debug("Result of running the command is: %s\n", runResultInfo)
}
if runRes.GenInfo != nil {
docVersion := runRes.GenInfo.OpenAPIDocVersion
resolvedVersion = runRes.GenInfo.SpeakeasyVersion
Expand Down Expand Up @@ -150,18 +156,18 @@ func RunWorkflow() error {
}

if err := releases.UpdateReleasesFile(releaseInfo, releasesDir); err != nil {
logging.Error("error while updating releases file: %v", err.Error())
return err
}

if _, err := g.CommitAndPush(docVersion, resolvedVersion, "", environment.ActionRunWorkflow, false); err != nil {
if _, err := g.CommitAndPush(docVersion, resolvedVersion, "", environment.ActionRunWorkflow, false, runRes.VersioningInfo.VersionReport); err != nil {
return err
}
}

outputs["resolved_speakeasy_version"] = resolvedVersion

if sourcesOnly {
if _, err := g.CommitAndPush("", resolvedVersion, "", environment.ActionRunWorkflow, sourcesOnly); err != nil {
if _, err := g.CommitAndPush("", resolvedVersion, "", environment.ActionRunWorkflow, sourcesOnly, nil); err != nil {
return err
}
}
Expand All @@ -184,6 +190,7 @@ func RunWorkflow() error {
OpenAPIChangeSummary: runRes.OpenAPIChangeSummary,
GenInfo: runRes.GenInfo,
currentRelease: &releaseInfo,
releaseNotes: runRes.ReleaseNotes,
}); err != nil {
return err
}
Expand All @@ -207,10 +214,11 @@ type finalizeInputs struct {
LintingReportURL string
ChangesReportURL string
OpenAPIChangeSummary string
VersioningReport *versioning.MergedVersionReport
VersioningInfo versionbumps.VersioningInfo
GenInfo *run.GenerationInfo
currentRelease *releases.ReleasesInfo
// key is language target name, value is release notes
releaseNotes map[string]string
}

// Sets outputs and creates or adds releases info
Expand All @@ -233,13 +241,14 @@ func finalize(inputs finalizeInputs) error {
}
}()

logging.Info("getMode from the environment: %s\n", environment.GetMode())
logging.Info("SDK_CHANGELOG_JULY_2025: %s", os.Getenv("SDK_CHANGELOG_JULY_2025"))
switch environment.GetMode() {
case environment.ModePR:
branchName, pr, err := inputs.Git.FindExistingPR(branchName, environment.ActionFinalize, inputs.SourcesOnly)
if err != nil {
return err
}

pr, err = inputs.Git.CreateOrUpdatePR(git.PRInfo{
BranchName: branchName,
ReleaseInfo: inputs.currentRelease,
Expand Down Expand Up @@ -272,11 +281,25 @@ func finalize(inputs finalizeInputs) error {

case environment.ModeDirect:
var releaseInfo *releases.ReleasesInfo
var oldReleaseInfo string
var languages map[string]releases.LanguageReleaseInfo
var targetSpecificReleaseNotes releases.TargetReleaseNotes = nil
if !inputs.SourcesOnly {
releaseInfo = inputs.currentRelease
languages = releaseInfo.Languages
oldReleaseInfo = releaseInfo.String()
Comment on lines +289 to +290
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only languages and release content is needed when creating a release using CreateRelease method.

Making this clear by changing the arguments in CreateRelease and passing in these arguments explicitly

logging.Info("release Notes: %+v", inputs.releaseNotes)
if os.Getenv("SDK_CHANGELOG_JULY_2025") == "true" && inputs.releaseNotes != nil {
targetSpecificReleaseNotes = inputs.releaseNotes
}

// We still read from releases info for terraform generations since they use the goreleaser
// Read from Releases.md for terraform generations
if inputs.Outputs[utils.OutputTargetRegenerated("terraform")] == "true" {
releaseInfo, err = getReleasesInfo()
oldReleaseInfo = releaseInfo.String()
targetSpecificReleaseNotes = nil
languages = releaseInfo.Languages
if err != nil {
return err
}
Expand All @@ -289,7 +312,7 @@ func finalize(inputs finalizeInputs) error {
}

if !inputs.SourcesOnly {
if err := inputs.Git.CreateRelease(*releaseInfo, inputs.Outputs); err != nil {
if err := inputs.Git.CreateRelease(oldReleaseInfo, languages, inputs.Outputs, targetSpecificReleaseNotes); err != nil {
return err
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/actions/suggest.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func Suggest() error {

outputs["cli_output"] = out

if _, err := g.CommitAndPush("", "", environment.GetOpenAPIDocOutput(), environment.ActionSuggest, false); err != nil {
if _, err := g.CommitAndPush("", "", environment.GetOpenAPIDocOutput(), environment.ActionSuggest, false, nil); err != nil {
return err
}

Expand Down
11 changes: 11 additions & 0 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ var defaultSupportedTargets = []string{
"typescript",
}

// Targets for the new changelog - JULY 2025
var DefaultSupportedTargetsForChangelog = []string{
"typescript",
"python",
"go",
"java",
"csharp",
"php",
"ruby",
}

func GetSupportedTargetNames() []string {
out, err := runSpeakeasyCommand("generate", "supported-targets")
if err == nil && out != "" {
Expand Down
5 changes: 3 additions & 2 deletions internal/cli/speakeasy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (

"github.com/speakeasy-api/sdk-generation-action/internal/download"
"github.com/speakeasy-api/sdk-generation-action/internal/environment"
"github.com/speakeasy-api/sdk-generation-action/internal/logging"
)

type Git interface {
Expand Down Expand Up @@ -78,9 +79,9 @@ func Download(pinnedVersion string, g Git) (string, error) {
func runSpeakeasyCommand(args ...string) (string, error) {
baseDir := environment.GetBaseDir()
extraRunEnvVars := environment.SpeakeasyEnvVars()

cmdPath := filepath.Join(baseDir, "bin", "speakeasy")

logging.Info("The command path being executed: %s", cmdPath)
logging.Info("The command args: %s", args)
cmd := exec.Command(cmdPath, args...)
cmd.Dir = filepath.Join(environment.GetWorkspace(), "repo", environment.GetWorkingDirectory())
cmd.Env = os.Environ()
Expand Down
Loading
Loading