package
0.0.0-20250308170929-48bd8ed27534
Repository: https://github.com/evergreen-ci/evergreen.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AppAuthorizedForOrg returns true if the given app name exists in the org's installation list, and has permission to write to pull requests.
CheckGithubAPILimit queries Github for the number of API requests remaining.
CreateCheckRun creates a checkRun and returns a Github CheckRun object.
No description provided by the author
No description provided by the author
GetBranchEvent gets the head of the a given branch via an API call to GitHub.
GetBranchProtectionRules gets all branch protection checks as a list of strings.
GetCheckRun gets a check run by ID.
No description provided by the author
GetEvergreenBranchProtectionRules gets all Evergreen branch protection checks as a list of strings.
GetGithubCommits returns a slice of GithubCommit objects from the given commitsURL when provided a valid oauth token.
GetGithubFile returns a struct that contains the contents of files within a repository as Base64 encoded content.
GetGithubMergeBaseRevision compares baseRevision and currentCommitHash in a GitHub repo and returns the merge base commit's SHA.
No description provided by the author
GetGithubPullRequestDiff downloads a diff from a Github Pull Request diff.
GetGithubTokenUser fetches a github user associated with an oauth token, and if requiredOrg is specified, checks that it belongs to that org.
GetGithubUser fetches the github user with the given login name.
No description provided by the author
GetPullRequestMergeBase returns the merge base hash for the given PR.
GetTaggedCommitFromGithub gets the commit SHA for the given tag name.
GitApplyNumstat attempts to apply a given patch; it returns the patch's bytes if it is successful.
GithubAuthenticate does a POST to github with the code that it received, the ClientId, ClientSecret And returns the response which contains the accessToken associated with the user.
GitHubUserHasWritePermission returns true if the given user has write permission for the repo.
GithubUserInOrganization returns true if the given github user is in the given organization.
No description provided by the author
IsMergeBaseAllowed will return true if the input merge base is newer than the oldest allowed merge base configured in the project settings.
No description provided by the author
ListCheckRunCheckSuite returns a list of check run IDs for a given check suite.
MostRestrictiveGitHubPermission returns the permission from the two given permissions that is the most restrictive.
No description provided by the author
NewPapertrailClient returns an initialized PapertrailClient.
NewRuntimeEnvironmentsClient returns a client that can interact with the Runtime Environments API.
ParseGitSummary takes in a buffer of data and parses it into a slice of git summaries.
No description provided by the author
ParseGitVersion parses the git version number from the version string and returns a boolean indicating if it's an Apple Git version.
PostCommentToPullRequest posts the given comment to the associated PR.
RevokeInstallationToken revokes an installation token.
SendPendingStatusToGithub sends a pending status to a Github PR patch associated with a given version.
UpdateCheckRun updates a checkRun and returns a Github CheckRun object UpdateCheckRunOptions must specify a name for the check run.
No description provided by the author
ValidateGitHubPermission checks if the given permission is a valid GitHub permission.
No description provided by the author
VersionMeetsMinimum checks if the version is greater than or equal to the minVersion.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
BSON fields for GithubPatch.
No description provided by the author
No description provided by the author
# Structs
APIDiffResponse represents a response from the /rest/api/v1/ami/diff route.
APIHistoryResponse represents a response from the /rest/api/v1/ami/history route.
APIPackageResponse represents a response from the /rest/api/v1/ami/packages route.
When attempting to access the some API using authentication, requests may return 404 Not Found, instead of 403 Forbidden, under certain circumstances.
No description provided by the author
APIToolchainResponse represents a response from the /rest/api/v1/ami/toolchains route.
No description provided by the author
No description provided by the author
DistroImage stores information about an image including its AMI, ID, and last deployed time.
EventHistoryOptions represents the filtering arguments for GetEvents.
This error should be returned when the requested remote configuration file can not be found.
No description provided by the author
No description provided by the author
No description provided by the author
GithubMergeGroup stores patch data for patches created from GitHub merge groups.
GithubPatch stores patch data for patches create from GitHub pull requests.
ImageDiffChange represents a change between two AMIs.
ImageEvent contains information about changes to an image when the AMI changes.
ImageEventEntry represents a change to the image.
ImageHistoryInfo represents information about an image with its AMI and creation date.
JiraCreateTicketResponse contains the results of a JIRA create ticket API call.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JiraSearchResults marshal to and unmarshal from the json search results returned by the rest api at /rest/api/2/search?jql={jql}.
No description provided by the author
JiraTickets marshal to and unmarshal from the json issue returned by the rest api at /rest/api/latest/issue/{ticket_id}.
OSInfo stores operating system information.
OSInfoFilterOptions represents the filtering options for GetOSInfo.
OSInfoResponse represents a response from the /rest/api/v1/ami/os route.
Package represents a package's information.
PackageFilterOptions represents the filtering arguments, each of which is optional except the AMI.
PapertrailClient is used to interact with the Papertrail service over HTTP.
PapertrailProductVersion contains a particular product-version's complete list of spans from Papertrail's /product-versions endpoint.
PapertrailSpan represents a span in json form from Papertrail.
No description provided by the author
RuntimeEnvironmentsClient is a client that can communicate with the Runtime Environments API.
No description provided by the author
SendGithubStatusInput is the input to the SendPendingStatusToGithub function and contains all the information associated with a version necessary to send a status to GitHub.
Summary stores summary patch information.
No description provided by the author
No description provided by the author
Toolchain represents a toolchain's information.
ToolchainFilterOptions represents the filtering arguments, each of which is optional except for the AMI.
TraceArgs contain the list of items necessary to pass to Papertrail.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author