{"modulePath":"github.com/HRMonitorr/githubwrapper","version":"v0.0.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubwrapper\n\n## Constants\n\n```go\nconst UrlApigit = \"https://api.github.com/repos\"\n```\n\n## Functions\n\n```go\nfunc GetBranch(ctx context.Context, personalToken, repoName, ownerName string) ([]*github.Branch, error)\n```\n\n```go\nfunc GetCommit(ctx context.Context, personalToken, repoName, ownerName, sha string) (*github.RepositoryCommit, error)\n```\n\n```go\nfunc ListCommitALL(ctx context.Context, PersonalToken, repoName, ownerName string) ([]*github.RepositoryCommit, error)\n```\n\n```go\nfunc ListRepositoriesOrg(ctx context.Context, personalToken, OrgName string) (dest []*github.Repository, err error)\n```\n\n```go\nfunc MakeClient(personalToken string) *github.Client\n```\n\n```go\nfunc MakeIssue(ctx context.Context, personalToken, repoName, OwnerName string, value github.IssueRequest) (*github.Response, error)\n```\n\n```go\nfunc UploadFileToRepository(val PushRepositories) (response *github.RepositoryContentResponse, err error)\n```\n\n## Types\n\n```go\ntype Commit struct {\n\tType  string `json:\"type\"`\n\tItems struct {\n\t\tTitle       string `json:\"title\"`\n\t\tDescription string `json:\"description\"`\n\t\tType        string `json:\"type\"`\n\t\tProperties  struct {\n\t\t\tURL         string `json:\"url\"`\n\t\t\tSHA         string `json:\"sha\"`\n\t\t\tNodeID      string `json:\"node_id\"`\n\t\t\tHTMLURL     string `json:\"html_url\"`\n\t\t\tCommentsURL string `json:\"comments_url\"`\n\t\t\tCommit      struct {\n\t\t\t\tURL    string `json:\"url\"`\n\t\t\t\tAuthor struct {\n\t\t\t\t\tName  string `json:\"name\"`\n\t\t\t\t\tEmail string `json:\"email\"`\n\t\t\t\t\tDate  string `json:\"date\"`\n\t\t\t\t} `json:\"author\"`\n\t\t\t\tCommitter struct {\n\t\t\t\t\tName  string `json:\"name\"`\n\t\t\t\t\tEmail string `json:\"email\"`\n\t\t\t\t\tDate  string `json:\"date\"`\n\t\t\t\t} `json:\"committer\"`\n\t\t\t\tMessage      string `json:\"message\"`\n\t\t\t\tCommentCount int    `json:\"comment_count\"`\n\t\t\t\tTree         struct {\n\t\t\t\t\tSHA string `json:\"sha\"`\n\t\t\t\t\tURL string `json:\"url\"`\n\t\t\t\t} `json:\"tree\"`\n\t\t\t\tVerification struct {\n\t\t\t\t\tVerified  bool   `json:\"verified\"`\n\t\t\t\t\tReason    string `json:\"reason\"`\n\t\t\t\t\tPayload   string `json:\"payload\"`\n\t\t\t\t\tSignature string `json:\"signature\"`\n\t\t\t\t} `json:\"verification\"`\n\t\t\t} `json:\"commit\"`\n\t\t\tAuthor struct {\n\t\t\t\tName              string `json:\"name\"`\n\t\t\t\tEmail             string `json:\"email\"`\n\t\t\t\tLogin             string `json:\"login\"`\n\t\t\t\tID                int    `json:\"id\"`\n\t\t\t\tNodeID            string `json:\"node_id\"`\n\t\t\t\tAvatarURL         string `json:\"avatar_url\"`\n\t\t\t\tGravatarID        string `json:\"gravatar_id\"`\n\t\t\t\tURL               string `json:\"url\"`\n\t\t\t\tHTMLURL           string `json:\"html_url\"`\n\t\t\t\tFollowersURL      string `json:\"followers_url\"`\n\t\t\t\tFollowingURL      string `json:\"following_url\"`\n\t\t\t\tGistsURL          string `json:\"gists_url\"`\n\t\t\t\tStarredURL        string `json:\"starred_url\"`\n\t\t\t\tSubscriptionsURL  string `json:\"subscriptions_url\"`\n\t\t\t\tOrganizationsURL  string `json:\"organizations_url\"`\n\t\t\t\tReposURL          string `json:\"repos_url\"`\n\t\t\t\tEventsURL         string `json:\"events_url\"`\n\t\t\t\tReceivedEventsURL string `json:\"received_events_url\"`\n\t\t\t\tType              string `json:\"type\"`\n\t\t\t\tSiteAdmin         bool   `json:\"site_admin\"`\n\t\t\t\tStarredAt         string `json:\"starred_at\"`\n\t\t\t} `json:\"author\"`\n\t\t\tCommitter struct {\n\t\t\t\tName              string `json:\"name\"`\n\t\t\t\tEmail             string `json:\"email\"`\n\t\t\t\tLogin             string `json:\"login\"`\n\t\t\t\tID                int    `json:\"id\"`\n\t\t\t\tNodeID            string `json:\"node_id\"`\n\t\t\t\tAvatarURL         string `json:\"avatar_url\"`\n\t\t\t\tGravatarID        string `json:\"gravatar_id\"`\n\t\t\t\tURL               string `json:\"url\"`\n\t\t\t\tHTMLURL           string `json:\"html_url\"`\n\t\t\t\tFollowersURL      string `json:\"followers_url\"`\n\t\t\t\tFollowingURL      string `json:\"following_url\"`\n\t\t\t\tGistsURL          string `json:\"gists_url\"`\n\t\t\t\tStarredURL        string `json:\"starred_url\"`\n\t\t\t\tSubscriptionsURL  string `json:\"subscriptions_url\"`\n\t\t\t\tOrganizationsURL  string `json:\"organizations_url\"`\n\t\t\t\tReposURL          string `json:\"repos_url\"`\n\t\t\t\tEventsURL         string `json:\"events_url\"`\n\t\t\t\tReceivedEventsURL string `json:\"received_events_url\"`\n\t\t\t\tType              string `json:\"type\"`\n\t\t\t\tSiteAdmin         bool   `json:\"site_admin\"`\n\t\t\t\tStarredAt         string `json:\"starred_at\"`\n\t\t\t} `json:\"committer\"`\n\t\t\tParents struct {\n\t\t\t\tType  string `json:\"type\"`\n\t\t\t\tItems struct {\n\t\t\t\t\tSha     string `json:\"sha\"`\n\t\t\t\t\tURL     string `json:\"url\"`\n\t\t\t\t\tHTMLURL string `json:\"html_url\"`\n\t\t\t\t} `json:\"items\"`\n\t\t\t} `json:\"parents\"`\n\t\t\tStats struct {\n\t\t\t\tType       string `json:\"type\"`\n\t\t\t\tProperties struct {\n\t\t\t\t\tAdditions int `json:\"additions\"`\n\t\t\t\t\tDeletions int `json:\"deletions\"`\n\t\t\t\t\tTotal     int `json:\"total\"`\n\t\t\t\t} `json:\"properties\"`\n\t\t\t} `json:\"stats\"`\n\t\t\tFiles struct {\n\t\t\t\tType  string `json:\"type\"`\n\t\t\t\tItems struct {\n\t\t\t\t\tTitle       string `json:\"title\"`\n\t\t\t\t\tDescription string `json:\"description\"`\n\t\t\t\t\tType        string `json:\"type\"`\n\t\t\t\t\tProperties  struct {\n\t\t\t\t\t\tSHA              string `json:\"sha\"`\n\t\t\t\t\t\tFilename         string `json:\"filename\"`\n\t\t\t\t\t\tStatus           string `json:\"status\"`\n\t\t\t\t\t\tAdditions        int    `json:\"additions\"`\n\t\t\t\t\t\tDeletions        int    `json:\"deletions\"`\n\t\t\t\t\t\tChanges          int    `json:\"changes\"`\n\t\t\t\t\t\tBlobURL          string `json:\"blob_url\"`\n\t\t\t\t\t\tRawURL           string `json:\"raw_url\"`\n\t\t\t\t\t\tContentsURL      string `json:\"contents_url\"`\n\t\t\t\t\t\tPatch            string `json:\"patch\"`\n\t\t\t\t\t\tPreviousFilename string `json:\"previous_filename\"`\n\t\t\t\t\t} `json:\"properties\"`\n\t\t\t\t} `json:\"items\"`\n\t\t\t} `json:\"files\"`\n\t\t} `json:\"items\"`\n\t} `json:\"items\"`\n}\n```\n\n```go\ntype IssueRequest struct {\n\tTitle    string   `json:\"title,omitempty\"`\n\tBody     string   `json:\"body,omitempty\"`\n\tLabels   []string `json:\"labels,omitempty\"`\n\tAssignee string   `json:\"assignee,omitempty\"`\n\tState    string   `json:\"state,omitempty\"`\n\t// StateReason can be 'completed' or 'not_planned'.\n\tStateReason string   `json:\"state_reason,omitempty\"`\n\tMilestone   int      `json:\"milestone,omitempty\"`\n\tAssignees   []string `json:\"assignees,omitempty\"`\n}\n```\n\n```go\ntype PushRepositories struct {\n\tContext       context.Context `json:\"context\"`\n\tPersonalToken string          `json:\"personalToken\"`\n\tReponame      string          `json:\"reponame\"`\n\tOwnerName     string          `json:\"ownerName\"`\n\tPath          string          `json:\"path\"`\n\tUsername      string          `json:\"username\"`\n\tEmail         string          `json:\"email\"`\n\tMessage       string          `json:\"message\"`\n\tBranch        string          `json:\"branch\"`\n}\n```\n\n```go\ntype Repositories struct {\n\tName     *string `json:\"name\"`\n\tFullName *string `json:\"full-name\"`\n\tHomepage *string `json:\"homepage\"`\n}\n```\n\n```go\nfunc ListRepositoriesOnlydDetail(ctx context.Context, personalToken, OrgName string) (dest []Repositories, err error)\n```\n\n","path":"github.com/HRMonitorr/githubwrapper","name":"githubwrapper","synopsis":"","isRedistributable":true}
