package
Version:
v2.8.0
Opens a new window with list of versions in this module.
Published: Feb 18, 2024
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func NewClient(ctx context.Context, host, token string) (*github.Client, error)
-
func PR(ctx context.Context, gh *github.Client, owner, reponame string, prnum int) (modver.Result, error)
-
func ParsePR(pr string) (host, owner, reponame string, prnum int, err error)
NewClient creates a new GitHub client talking to the given host and authenticated with the given token.
PR performs modver analysis on a GitHub pull request.
ParsePR parses a GitHub pull-request URL,
which should have the form http(s)://HOST/OWNER/REPO/pull/NUMBER.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.