git

package
v0.0.0-...-195bd42 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branches

func Branches(repoName string) ([]string, error)

Types

type Repository

type Repository struct {
	Name     string   `json:"repo_name"`
	URL      string   `json:"url"`
	Branches []string `json:"branches"`
}

Repository is the type that is used to store information about a repository

func CreatedRepo

func CreatedRepo(r *http.Request) (*Repository, int, error)

CreatedRepo parses a new repo request from github and returns a Repository and error and status code

func Repos

func Repos() ([]Repository, error)

Repos queries github and gets the list of repos

Jump to

Keyboard shortcuts

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