diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 00846a5..7b115a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,11 +1,3 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# GitHub recommends pinning actions to a commit SHA. -# To get a newer version, you will need to update the SHA. -# You can also reference a tag or branch, but the action may change without warning. name: Publish Docker image diff --git a/main.go b/main.go index a530493..03d7c1f 100644 --- a/main.go +++ b/main.go @@ -39,12 +39,6 @@ func main() { Usage: "url of the gitea instance", EnvVar: "PLUGIN_BASE_URL,GITEA_MESSAGE_BASE_URL", }, - cli.StringFlag{ - Name: "title", - Value: "", - Usage: "string for the title shown in the gitea pr comment", - EnvVar: "PLUGIN_TITLE,GITEA_MESSAGE_TITLE", - }, cli.StringFlag{ Name: "delete-identifier", Value: "", @@ -105,7 +99,6 @@ func run(c *cli.Context) error { MessageText: c.String("message-text"), MessageFile: c.String("message-file"), BaseURl: c.String("base-url"), - Title: c.String("title"), DeleteIdentifier: c.String("delete-identifier"), }, } diff --git a/message.go b/message.go index fd7afd2..53bacc4 100644 --- a/message.go +++ b/message.go @@ -12,7 +12,6 @@ type messageClient struct { Owner string Repo string Index int64 - Title string Message string DeleteIdentifier string } diff --git a/plugin.go b/plugin.go index 56bd115..5bb1bd1 100644 --- a/plugin.go +++ b/plugin.go @@ -26,7 +26,6 @@ type ( MessageText string MessageFile string BaseURl string - Title string DeleteIdentifier string } Plugin struct { @@ -97,7 +96,6 @@ func (p Plugin) Exec() error { Owner: p.Repo.Owner, Repo: p.Repo.Name, Index: p.Pr.Index, - Title: p.Config.Title, Message: string(content), DeleteIdentifier: p.Config.DeleteIdentifier, }