github

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndDisplayNewMilestones

func CreateAndDisplayNewMilestones(baseURL string, token string,
	projectID string, milestoneData map[string]utils.Milestone, logger *log.Logger) error

CreateAndDisplayNewMilestones creates and displays new milestones

func CreateGithubMilestoneMap

func CreateGithubMilestoneMap(githubAPI []githubAPI) map[string]utils.Milestone

CreateGithubMilestoneMap creates a map of GitHub milestones

func GetClosedMilestones

func GetClosedMilestones(baseURL string, token string, projectID string, milestoneData map[string]utils.Milestone) (map[string]utils.Milestone, error)

GetClosedMilestones gets closed milestones

func MockGithubAPI

func MockGithubAPI(state string) []githubAPI

MockGithubAPI populates a []githubAPI with mock API data

func MockGithubAPIGetRequest

func MockGithubAPIGetRequest(URL string, state string)

MockGithubAPIGetRequest creates a mock responder for a specific milestone endpoint and sends back mock JSON data

func MockGithubAPIPatchRequest

func MockGithubAPIPatchRequest(URL string, state string, id string)

MockGithubAPIPatchRequest creates a mock responder for a specific milestone endpoint and sends back mock JSON data

func MockGithubAPIPostRequest

func MockGithubAPIPostRequest(URL string, state string)

MockGithubAPIPostRequest creates a mock responder for a specific milestone endpoint and sends back mock JSON data

func ReactivateClosedMilestones

func ReactivateClosedMilestones(
	milestones map[string]utils.Milestone,
	baseURL string,
	token string,
	project string,
) (map[string]utils.Milestone, error)

ReactivateClosedMilestones reactivates closed milestones that occur in the future

Types

This section is empty.

Jump to

Keyboard shortcuts

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