github

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigSchema = map[string]*schema.Attribute{
	"token": {
		Type: schema.TypeString,
	},
	"base_url": {
		Type: schema.TypeString,
	},
}

Functions

func ConfigInstance added in v0.1.0

func ConfigInstance() interface{}

func GetConfig added in v0.1.0

func GetConfig(connection *plugin.Connection) githubConfig

GetConfig :: retrieve and cast connection config from query data

func GitHubWorkflowFileContent added in v0.19.0

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

func HasValue added in v0.28.0

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

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

func LabelTransform added in v0.30.1

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 added in v0.22.0

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

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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