fix: format of date when MR was closed or merged (#367) refactor: Add Payload Validators + Middleware In Go Code (#366) fix: Add better checks for leaving comments (#369) fix: regex support for http credentials embedded in remote url (#372) fix: Comment on single line selects two lines (#371) This is a #PATCH release.
26 lines
692 B
Go
26 lines
692 B
Go
package app
|
|
|
|
type PluginOptions struct {
|
|
GitlabUrl string `json:"gitlab_url"`
|
|
Port int `json:"port"`
|
|
AuthToken string `json:"auth_token"`
|
|
LogPath string `json:"log_path"`
|
|
Debug struct {
|
|
Request bool `json:"request"`
|
|
Response bool `json:"response"`
|
|
GitlabRequest bool `json:"gitlab_request"`
|
|
GitlabResponse bool `json:"gitlab_response"`
|
|
} `json:"debug"`
|
|
ChosenTargetBranch *string `json:"chosen_target_branch,omitempty"`
|
|
ConnectionSettings struct {
|
|
Insecure bool `json:"insecure"`
|
|
Remote string `json:"remote"`
|
|
} `json:"connection_settings"`
|
|
}
|
|
|
|
var pluginOptions PluginOptions
|
|
|
|
func SetPluginOptions(p PluginOptions) {
|
|
pluginOptions = p
|
|
}
|