# README
go-github-apps-helpers - A collection of Go helpers for GitHub Apps from nomadops
The go-github module lacks the ability to remove a repository from an installation with multiple repositories. This need comes up sometimes when users accidentally install an applicatin into multiple repositories and need to remove it from one of them.
installations
import "github.com/nomadops/go-github-apps-helpers/pkg"
Index
- func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, client *github.Client) error
- func AppToken(itr *ghinstallation.AppsTransport, appID int64, key []byte) ([]byte, error)
- func Token(itr *ghinstallation.Transport, appID int64, key []byte) (string, error)
func AppRemoveRepoFromInstallation
func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, client *github.Client) error
AppRemoveRepoFromInstallation removes a GitHub repository from a GitHub App installation. func AppRemoveRepoFromInstallation(ctx context.Context, appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport, token []byte) error { func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport, token []byte) error { func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport, key []byte) error { func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport) error {
func AppToken
func AppToken(itr *ghinstallation.AppsTransport, appID int64, key []byte) ([]byte, error)
Token returns the complete, signed Github app JWT token.
func Token
func Token(itr *ghinstallation.Transport, appID int64, key []byte) (string, error)
Token returns the complete, signed Github app JWT token
Generated by gomarkdoc