githelper

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Copyright © 2022 Felipe Macias felipem1210@gmail.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2022 Felipe Macias felipem1210@gmail.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2022 Felipe Macias felipem1210@gmail.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfError

func CheckIfError(err error)

func GitAdd

func GitAdd(t string, r []string)

func GitCheckout

func GitCheckout(t string, r []string, b string)

func GitClone

func GitClone(target string, auth string, r []string, urls []string)

func GitCommit

func GitCommit(t string, r []string, message string)

func GitCreateBranch

func GitCreateBranch(t string, r []string, b string)

func GitFetch

func GitFetch(t string, r []string)

func GitPull

func GitPull(t string, r []string)

func GitPush

func GitPush(t string, r []string)

func GitRebase

func GitRebase(t string, r []string, bb string)

func GitReset

func GitReset(t string, r []string)

func GitStatus

func GitStatus(t string, r []string)

func ListDirectories added in v0.2.0

func ListDirectories(target string) []string

func LogFatal

func LogFatal(f string, err error)

func ValidateEnv

func ValidateEnv()

func WritePrsToJson

func WritePrsToJson(data MyPrs, json_file string) error

func WriteReposToJson

func WriteReposToJson(data MyRepos, json_file string) error

Types

type MyPrs

type MyPrs []prInfo

func (MyPrs) GithubCreatePr

func (myPrs MyPrs) GithubCreatePr(org string, repos []string, f string, reviewers []string) MyPrs

func (MyPrs) GithubEditPr added in v0.1.1

func (myPrs MyPrs) GithubEditPr(org string, repos []string, f string)

func (MyPrs) GithubMergePr added in v0.1.1

func (myPrs MyPrs) GithubMergePr(org string, repos []string, f string)

type MyRepos

type MyRepos []*github.Repository

func (MyRepos) GetGithubRepositoriesInfo

func (myRepos MyRepos) GetGithubRepositoriesInfo(org string) MyRepos

func (MyRepos) GithubAssignTeamToRepo added in v0.3.0

func (myRepos MyRepos) GithubAssignTeamToRepo(f string, team string)

Assigns a github team to a repository

func (MyRepos) GithubCreateRepos

func (myRepos MyRepos) GithubCreateRepos(f string) MyRepos

func (MyRepos) GithubGetGitUrls added in v0.2.0

func (myRepos MyRepos) GithubGetGitUrls(f string, regex string, auth string) []string

func (MyRepos) GithubGetOrg added in v0.1.1

func (myRepos MyRepos) GithubGetOrg(f string) string

func (MyRepos) GithubGetRepoNames added in v0.1.1

func (myRepos MyRepos) GithubGetRepoNames(f string, regex string) []string

Jump to

Keyboard shortcuts

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