push

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	New       State       `json:"new"` // Hash
	Old       State       `json:"old"` // Hash
	Forced    bool        `json:"forced"`
	Links     interface{} `json:"links"` // Array
	Created   bool        `json:"created"`
	Commits   interface{} `json:"commits"` // Array
	Truncated bool        `json:"truncated"`
	Closed    bool        `json:"closed"`
}

type Push

type Push struct {
	Changes []Change
	// contains filtered or unexported fields
}

func Init

func Init(data []byte) (*Push, error)

func (*Push) BranchNames

func (p *Push) BranchNames() []string

func (*Push) Data

func (p *Push) Data() []byte

func (*Push) Name

func (p *Push) Name() string

func (*Push) RepositoryFullName

func (p *Push) RepositoryFullName() string

func (*Push) UnmarshalJSON

func (p *Push) UnmarshalJSON(b []byte) error

type State

type State struct {
	Type                 string      `json:"type"`
	Name                 string      `json:"name"`
	Links                interface{} `json:"links"`
	DefaultMergeStrategy string      `json:"default_merge_strategy"`
	MergeStrategies      []string    `json:"merge_strategies"`
	Target               interface{} `json:"target"`
}

Jump to

Keyboard shortcuts

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