Lines Matching +full:github +full:- +full:token
7 // http://www.apache.org/licenses/LICENSE-2.0
25 "github.com/google/go-github/v36/github"
29 *github.Client
32 func (gh *githubClient) listTags(ctx context.Context, org, repo string) (_ []*github.RepositoryTag,…
35 err = fmt.Errorf("listing tags in github.com/%s/%s: %w", org, repo, err)
39 var allTags []*github.RepositoryTag
40 err = gh.listPages(func(opts *github.ListOptions) (*github.Response, error) {
54 func (gh *githubClient) listReleases(ctx context.Context, org, repo string) (_ []*github.Repository…
57 err = fmt.Errorf("listing releases in github.com/%s/%s: %w", org, repo, err)
61 var allReleases []*github.RepositoryRelease
62 err = gh.listPages(func(opts *github.ListOptions) (*github.Response, error) {
77 // github.RepositoriesService.GetReleaseByTag, but it also considers draft
79 …ReleaseByTagIncludingDraft(ctx context.Context, org, repo, tag string) (*github.RepositoryRelease,…
96 func (gh *githubClient) listPages(fn func(opt *github.ListOptions) (*github.Response, error)) error…
97 opt := &github.ListOptions{PerPage: 50}
110 // githubTokenFlag is used to find a GitHub personal access token on the
111 // command line. It accepts a raw token or a path to a file containing a token.
121 return fmt.Errorf("reading GitHub token: %w", err)