mirror of
https://github.com/Jozott00/drone-gitea-message.git
synced 2026-06-04 18:24:15 +08:00
Remove title parameter
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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"),
|
||||
},
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@ type messageClient struct {
|
||||
Owner string
|
||||
Repo string
|
||||
Index int64
|
||||
Title string
|
||||
Message string
|
||||
DeleteIdentifier string
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user