github

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0, Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigInstance

func ConfigInstance() interface{}

func GetConfig

func GetConfig(connection *plugin.Connection) githubConfig

GetConfig :: retrieve and cast connection config from query data

func GitHubWorkflowFileContent

func GitHubWorkflowFileContent(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData) (interface{}, error)

func HasValue

func HasValue(_ context.Context, input *transform.TransformData) (interface{}, error)

HasValue Note: if useful to other tables, move to utils.go

func LabelTransform

func LabelTransform(ctx context.Context, input *transform.TransformData) (interface{}, error)

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Plugin returns this plugin

Types

type CodeOwnerRule

type CodeOwnerRule struct {
	LineNumber  int
	Pattern     string
	Users       []string
	Teams       []string
	PreComments []string
	LineComment string
}

type CollaboratorEdge

type CollaboratorEdge struct {
	Permission githubv4.RepositoryPermission `graphql:"permission @include(if:$includeOCPermission)" json:"permission"`
	Node       models.CollaboratorLogin      `graphql:"node @include(if:$includeOCNode)" json:"node"`
}

type ContentInfo

type ContentInfo struct {
	Oid            string
	AbbreviatedOid string
	Name           string
	Mode           *int
	PathRaw        string
	IsGenerated    *bool
	Path           string
	Size           int
	LineCount      int
	Type           string
	Content        string
	CommitUrl      string
	IsBinary       bool
}

type FileContent

type FileContent struct {
	Repository string
	FilePath   string
	Content    string
}

type OrgCollaborators

type OrgCollaborators struct {
	RepositoryName githubv4.String
	Permission     githubv4.RepositoryPermission
	Node           models.CollaboratorLogin
}

type RepositoryCollaborator

type RepositoryCollaborator struct {
	Permission githubv4.RepositoryPermission
	Node       models.BasicUser
}

type Stargazer

type Stargazer struct {
	StarredAt models.NullableTime `graphql:"starredAt @include(if:$includeStargazerStarredAt)" json:"starred_at"`
	Node      models.BasicUser    `graphql:"node @include(if:$includeStargazerNode)" json:"ndoe"`
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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