githubAPI

package
v0.0.0-...-88dbfc4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitClientFromContext

func GetGitClientFromContext(r *http.Request) (*github.Client, error)

func GetGitUserName

func GetGitUserName(client *github.Client) (string, error)

* Get Github Username from users GitHub

func GetRepoByName

func GetRepoByName(client *github.Client, repoName string) (*github.Repository, error)

func GetRepoContributers

func GetRepoContributers(client *github.Client, repo *github.Repository) (map[string]int, error)

* return a map of contributers names and their associated github ID

func GetRepoIssues

func GetRepoIssues(client *github.Client, repo *github.Repository) ([]*github.Issue, error)

* Get a list of issues for a repo

func GetUserBio

func GetUserBio(client *github.Client) (string, error)

* Get Bio from users github

func GetUserID

func GetUserID(client *github.Client) (int, error)

* Get User ID from users github

func GetUserIconURL

func GetUserIconURL(client *github.Client) (string, error)

* Get Icon URL from users github

func GetUserOwnedRepos

func GetUserOwnedRepos(client *github.Client) ([]*github.Repository, error)

* Get List of repos owned by authenticated user

Types

This section is empty.

Jump to

Keyboard shortcuts

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