Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubApp ¶
type GitHubApp struct {
Config *GitHubAppConfig
Auth Auth
// contains filtered or unexported fields
}
GitHubApp is a struct to interact with GitHub App's API
func NewGitHubApp ¶
func NewGitHubApp(cfg *GitHubAppConfig) (*GitHubApp, error)
Creates a new GitHubApp struct configured by GitHubAppConfig
func (*GitHubApp) GetAccessToken ¶
Gets the access token to authenticate with github
func (*GitHubApp) HasChanges ¶
Check if repo has local changes
type GitHubAppConfig ¶
type GitHubAppConfig struct {
RepoURL string
ApplicationID string
InstallationID string
LocalPath string
PrivateKey []byte
}
Configuration for the GitHub App interaction
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
TokenResponse is a struct that represents the response from the API
Click to show internal directories.
Click to hide internal directories.