sonarqube

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webhook

type Webhook struct {
	ServerUrl string `json:"serverUrl"`
	Revision  string `json:"revision"`
	Project   struct {
		Key  string `json:"key"`
		Name string `json:"name"`
		Url  string `json:"url"`
	} `json:"project"`
	Branch struct {
		Name string `json:"name"`
		Type string `json:"type"`
		Url  string `json:"url"`
	} `json:"branch"`
	QualityGate struct {
		Status     string `json:"status"`
		Conditions []struct {
			Metric string
			Status string
		} `json:"conditions"`
	} `json:"qualityGate"`
	Properties *properties `json:"properties,omitempty"`
	PRIndex    int
}

func New

func New(raw []byte) (*Webhook, bool)

func (*Webhook) GetRevision

func (w *Webhook) GetRevision() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL