types

package
v0.0.0-...-9226bcd Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 1 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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