types

package
v0.0.0-...-c530903 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Body     string `json:"body"`
	IssueURL string `json:"issue_url"`
	User     struct {
		Login string `json:"login"`
	}
}

type CommentAction

type CommentAction struct {
	Type  string
	Value string
}

type DerekRepoConfig

type DerekRepoConfig struct {

	// A redirect URL to load the config from another location.
	Redirect string

	// Features can be turned on/off if needed.
	Features []string

	// Users who are enrolled to make use of Derek
	Maintainers []string

	// Curators is an alias for Maintainers and is only used if the Maintainers list is empty.
	Curators []string

	//ContributingURL url to contribution guide
	ContributingURL string `yaml:"contributing_url"`

	Messages []Message `yaml:"custom_messages"`

	RequiredInIssues []string `yaml:"required_in_issues"`
}

DerekRepoConfig is a config for a Derek-enabled repository

func MergeDerekRepoConfigs

func MergeDerekRepoConfigs(localConfig, remoteConfig DerekRepoConfig) (DerekRepoConfig, error)
type Head struct {
	SHA string `json:"sha"`
}

type ID

type ID struct {
	ID int `json:"id"`
}

type InstallationRequest

type InstallationRequest struct {
	Installation ID `json:"installation"`
}

type Issue

type Issue struct {
	Labels    []IssueLabel `json:"labels"`
	Number    int          `json:"number"`
	Title     string       `json:"title"`
	Body      string       `json:"body"`
	Locked    bool         `json:"locked"`
	State     string       `json:"state"`
	Milestone Milestone    `json:"milestone"`
	URL       string       `json:"url"`
}

type IssueCommentOuter

type IssueCommentOuter struct {
	Repository Repository `json:"repository"`
	Comment    Comment    `json:"comment"`
	Action     string     `json:"action"`
	Issue      Issue      `json:"issue"`
	InstallationRequest
}

type IssueLabel

type IssueLabel struct {
	Name string `json:"name"`
}

type IssuesOuter

type IssuesOuter struct {
	Repository Repository `json:"repository"`
	Comment    Comment    `json:"comment"`
	Action     string     `json:"action"`
	Issue      Issue      `json:"issue"`
	Sender     Sender     `json:"sender"`
	InstallationRequest
}

type Message

type Message struct {
	Name  string `yaml:"name"`
	Value string `yaml:"value"`
}

type Milestone

type Milestone struct {
	Title string `json:"title"`
}

type Owner

type Owner struct {
	Login string `json:"login"`
	Type  string `json:"type"`
}

type PullRequest

type PullRequest struct {
	Number            int    `json:"number"`
	AuthorAssociation string `json:"author_association"`
	Body              string `json:"body"`
	State             string `json:"state"`
	Head              Head   `json:"head"`
}

func (*PullRequest) FirstTimeContributor

func (p *PullRequest) FirstTimeContributor() bool

FirstTimeContributor whether the contributor is new to the repo

type PullRequestOuter

type PullRequestOuter struct {
	Repository  Repository  `json:"repository"`
	PullRequest PullRequest `json:"pull_request"`
	Action      string      `json:"action"`
	InstallationRequest
}

type Repository

type Repository struct {
	Owner         Owner  `json:"owner"`
	Name          string `json:"name"`
	Private       bool   `json:"private"`
	DefaultBranch string `json:"default_branch"`
}

type Sender

type Sender struct {
	Login string `json:"login"`
}

Jump to

Keyboard shortcuts

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