service

package
v0.0.0-...-47a1ef5 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubParams

type GithubParams struct {
	User                string
	PersonalAccessToken string
}

type GithubPullRequestResponse

type GithubPullRequestResponse struct {
	Id     int64 `json:"id"`
	Number int   `json:"number"`
	User   struct {
		Login string `json:"login"`
	}
	Title     string          `json:"title"`
	CreatedAt GithubTimestamp `json:"created_at"`
	UpdatedAt GithubTimestamp `json:"updated_at"`
	ClosedAt  GithubTimestamp `json:"closed_at"`
	MergedAt  GithubTimestamp `json:"merged_at"`
}

type GithubReposRequestResponse

type GithubReposRequestResponse struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
}

type GithubService

type GithubService struct {
	// contains filtered or unexported fields
}

func NewGithubService

func NewGithubService(httpClient *http.Client, githubParams GithubParams) *GithubService

func (*GithubService) GetPullRequestsForRepo

func (g *GithubService) GetPullRequestsForRepo(organisation string, repository string) ([]models.GithubPullRequest, error)

func (*GithubService) GetRepositoriesForOrganisation

func (g *GithubService) GetRepositoriesForOrganisation(organisation string) ([]string, error)

type GithubTimestamp

type GithubTimestamp struct {
	time.Time
}

func (*GithubTimestamp) UnmarshalJSON

func (p *GithubTimestamp) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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