Remove title parameter

This commit is contained in:
Johannes Zottele
2024-04-18 14:24:04 +02:00
parent 6dde9c117a
commit 3bd882eccc
4 changed files with 0 additions and 18 deletions
-8
View File
@@ -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
-7
View File
@@ -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"),
},
}
-1
View File
@@ -12,7 +12,6 @@ type messageClient struct {
Owner string
Repo string
Index int64
Title string
Message string
DeleteIdentifier string
}
-2
View File
@@ -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,
}