github

package
Version: v0.0.0-...-808bb95 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitHubEventDetails

func GetGitHubEventDetails() (int, time.Time, error)

GetGitHubEventDetails retrieves the events details

func GetLastCommentForEvent

func GetLastCommentForEvent(ctx context.Context, client *github.Client, number int, updatedAt time.Time) (string, error)

GetLastCommentForEvent attempts to get the last comment for the triggered event

func NewClient

func NewClient(ctx *context.Context, token string) *github.Client

NewClient returns a new github client.

Types

type Event

type Event struct {
	Issue       Issue       `json:"issue"`
	PullRequest PullRequest `json:"pull_request"`
}

Event entity.

type Issue

type Issue struct {
	Number    int    `json:"number"`
	UpdatedAt string `json:"updated_at"`
}

Issue entity.

type PullRequest

type PullRequest struct {
	Number    int    `json:"number"`
	UpdatedAt string `json:"updated_at"`
}

PullRequest entity.

type Repository

type Repository struct {
	Owner string
	Name  string
}

Repository entity

func GetRepositoryInfo

func GetRepositoryInfo() Repository

GetRepositoryInfo returns information about the repository

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL