label

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The Unikraft Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label struct {
	Name                     string        `yaml:"name"`
	Description              string        `yaml:"description"`
	Color                    string        `yaml:"color"`
	ApplyOnPrMatchRepos      []string      `yaml:"apply_on_pr_match_repos"`
	ApplyOnPrMatchPaths      []string      `yaml:"apply_on_pr_match_paths"`
	ApplyAfter               time.Duration `yaml:"apply_after"`
	RemoveAfter              time.Duration `yaml:"remove_after"`
	DoNotRemoveIfLabelsExist []string      `yaml:"do_not_remove_if_labels_exist"`
	// contains filtered or unexported fields
}

func NewListOfLabelsFromPath

func NewListOfLabelsFromPath(ghApi *ghapi.GithubClient, githubOrg, labelsDir string) ([]Label, error)

func NewListOfLabelsFromYAML

func NewListOfLabelsFromYAML(ghApi *ghapi.GithubClient, githubOrg, labelsFile string) ([]Label, error)

func (*Label) AppliesTo

func (l *Label) AppliesTo(repo, file string) bool

type Labels

type Labels struct {
	Labels []Label `yaml:"labels"`
}

Jump to

Keyboard shortcuts

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