Skip to content

Commit b1d2b28

Browse files
committed
add action run url to footer
1 parent e2a73e8 commit b1d2b28

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

internal/prdescription/prdescription.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type Input struct {
3131
// Version information
3232
SpeakeasyVersion string `json:"speakeasy_version,omitempty"`
3333
ManualBump bool `json:"manual_bump,omitempty"`
34+
ActionRunURL string `json:"action_run_url,omitempty"`
3435

3536
// Version report data (from SPEAKEASY_VERSION_REPORT_LOCATION)
3637
VersionReport *versioning.MergedVersionReport `json:"version_report,omitempty"`
@@ -132,9 +133,14 @@ func buildBody(input Input) string {
132133
body.WriteString(stripANSICodes(markdownSection))
133134
}
134135

135-
// Footer with CLI version
136-
if !input.SourceGeneration && input.SpeakeasyVersion != "" {
137-
body.WriteString(fmt.Sprintf("\nBased on [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy) %s\n", input.SpeakeasyVersion))
136+
// Footer
137+
if !input.SourceGeneration {
138+
if input.SpeakeasyVersion != "" {
139+
body.WriteString(fmt.Sprintf("\nBased on [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy) %s\n", input.SpeakeasyVersion))
140+
}
141+
if input.ActionRunURL != "" {
142+
body.WriteString(fmt.Sprintf("\nLast updated by [Speakeasy workflow](%s)\n", input.ActionRunURL))
143+
}
138144
}
139145

140146
return body.String()

0 commit comments

Comments
 (0)