ghub

package module
v0.0.0-...-a61a32c Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

README

git-hub

Opinionated git and github automation tool.

Badges

License CircleCI Coverage Status Go Report Card

License

Copyright (c) 2018 Raül Pérez, repejota@gmail.com.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignUserToIssue

func AssignUserToIssue(organization string, repository string, user *github.User, issue *github.Issue) error

AssignUserToIssue ...

func FeatureStart

func FeatureStart(repositoryPath string, gitHubToken string, featureTitle string)

FeatureStart ...

func GetAuthenticatedUser

func GetAuthenticatedUser() (*github.User, error)

GetAuthenticatedUser ...

func GetIssue

func GetIssue(organization string, repository string, issueID int) (*github.Issue, error)

GetIssue ...

func ListIssuesByRepo

func ListIssuesByRepo(repoFullName string) ([]*github.Issue, error)

ListIssuesByRepo ...

func ParseGithubURL

func ParseGithubURL(url string) (string, string, string, error)

ParseGithubURL ...

func ParseRepositoryFullName

func ParseRepositoryFullName(fullName string) (string, string)

ParseRepositoryFullName ...

func ReleaseFinish

func ReleaseFinish(path string, gitHubToken string)

ReleaseFinish ...

func ReleaseStart

func ReleaseStart(path string, gitHubToken string)

ReleaseStart ...

func ShowVersionInfo

func ShowVersionInfo(version, build string) string

ShowVersionInfo returns version and build information

func Slugify

func Slugify(str string) string

Slugify ...

func SlugifyIssue

func SlugifyIssue(issue *github.Issue) string

SlugifyIssue ...

func SlugifyRepository

func SlugifyRepository(repositoryFullName string) string

SlugifyRepository ...

Types

type Repository

type Repository struct {
	Path             string
	GitHubToken      string
	GitRepository    *git.Repository
	GitHubRepository *github.Repository
}

Repository ...

func OpenRepository

func OpenRepository(path string, gitHubToken string) (*Repository, error)

OpenRepository opens a repository from a path

func (*Repository) GetCurrentVersion

func (r *Repository) GetCurrentVersion() (*SemVer, error)

GetCurrentVersion ...

func (*Repository) GetNewIssueURL

func (r *Repository) GetNewIssueURL(repositoryFullName string) string

GetNewIssueURL ...

func (*Repository) GetRemoteGithubRepository

func (r *Repository) GetRemoteGithubRepository(remoteName string) error

GetRemoteGithubRepository ...

func (*Repository) Git

func (r *Repository) Git(path string) error

Git ...

func (*Repository) NextVersion

func (r *Repository) NextVersion() (*SemVer, error)

NextVersion ...

type SemVer

type SemVer struct {
	Major int
	Minor int
	Patch int
}

SemVer ...

func NewSemVer

func NewSemVer(version string) (*SemVer, error)

NewSemVer ...

func (*SemVer) String

func (v *SemVer) String() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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