Skip to content

Commit

Permalink
feat: add generate-release-notes parameter
Browse files Browse the repository at this point in the history
Add a parameter that sets the "generate_release_notes" boolean option of
the API call. When set, it autogenerates a release note.
  • Loading branch information
fernandrone committed Apr 9, 2024
1 parent ccfc07d commit 8644d2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/drone-github-release/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,11 @@ func settingsFlags(settings *plugin.Settings) []cli.Flag {
EnvVars: []string{"PLUGIN_OVERWRITE", "GITHUB_RELEASE_OVERWRIDE"},
Destination: &settings.Overwrite,
},
&cli.BoolFlag{
Name: "generate-release-notes",
Usage: "whether to automatically generate the name and body for this release",
EnvVars: []string{"PLUGIN_GENERATE_RELEASE_NOTES", "GITHUB_GENERATE_RELEASE_NOTES"},
Destination: &settings.GenerateReleaseNotes,
},
}
}

0 comments on commit 8644d2a

Please sign in to comment.