_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c175600 | // sourceURL returns the source URL from prow jobs repository reference | |
c175601 | // makePipelineGitResource creates a pipeline git resource from prow job | |
c175602 | // makePipeline creates a PipelineRun from a prow job using the PipelineRunSpec defined in the prow job | |
c175603 | // matchingConfigs filters irrelevant RequireMtchingLabel configs from
// the list of all configs.
// `branch` should be empty for Issues and non-empty for PRs.
// `label` should be omitted in the case of 'open' and 'reopen' actions. | |
c175604 | // SuggestCodeChange returns code suggestions for a given lint.Problem
// Returns empty string if no suggestion can be given | |
c175605 | // ServeExternalPluginHelp returns a HandlerFunc that serves plugin help information that is
// provided by the specified ExternalPluginHelpProvider. | |
c175606 | // protect protects branches specified in the presubmit and branch-protection config sections. | |
c175607 | // UpdateOrg updates all repos in the org with the specified defaults | |
c175608 | // UpdateRepo updates all branches in the repo with the specified defaults | |
c175609 | // UpdateBranch updates the branch with the specified configuration | |
c175610 | // LoadConfig loads options from serialized config | |
c175611 | // Run uploads artifacts with the specified options forever.
//
// Sends a stop message to the artifact uploader when it is interrupted. | |
c175612 | // Start creates goroutines to monitor the files that contain the secret value. | |
c175613 | // reloadSecret will begin polling the secret file at the path. If the first load
// fails, Start with return the error and abort. Future load failures will log
// the failure message but continue attempting to load. | |
c175614 | // GetSecret returns the value of a secret stored in a map. | |
c175615 | // setSecret sets a value in a map of secrets. | |
c175616 | // GetTokenGenerator returns a function that gets the value of a given secret. | |
c175617 | // New creates a new History struct with the specificed recordLog size limit. | |
c175618 | // Record appends an entry to the recordlog specified by the poolKey. | |
c175619 | // ServeHTTP serves a JSON mapping from pool key -> sorted records for the pool. | |
c175620 | // Flush writes the action history to persistent storage if configured to do so. | |
c175621 | // AllRecords generates a map from pool key -> sorted records for the pool. | |
c175622 | // MakeCommand returns a `download` command. | |
c175623 | // CheckFlags looks for comments matching regexes | |
c175624 | // ReceiveComment adds matching comments to InfluxDB | |
c175625 | // NewController constructs a new instance of the crier controller. | |
c175626 | // Run is the main path of execution for the controller loop. | |
c175627 | // runWorker executes the loop to process new items added to the queue. | |
c175628 | // New creates a LocalGit and a git.Client pointing at it. | |
c175629 | // MakeFakeRepo creates the given repo and makes an initial commit. | |
c175630 | // AddCommit adds the files to a new commit in the repo. | |
c175631 | // CheckoutNewBranch does git checkout -b. | |
c175632 | // Checkout does git checkout. | |
c175633 | // RevParse does git rev-parse. | |
c175634 | // CleanAll cleans all of the resources for all of the regions visible to
// the provided AWS session. | |
c175635 | // optionsForRepo gets the plugins.Lgtm struct that is applicable to the indicated repo. | |
c175636 | // getChangedFiles returns all the changed files for the provided pull request. | |
c175637 | // loadReviewers returns all reviewers and approvers from all OWNERS files that
// cover the provided filenames. | |
c175638 | // NewController returns a new gerrit controller client | |
c175639 | // SaveLastSync saves last sync time in Unix to a volume | |
c175640 | // Sync looks for newly made gerrit changes
// and creates prowjobs according to specs | |
c175641 | // AddFlags adds "event" to the command help | |
c175642 | // CheckFlags is delegated to EventMatcher | |
c175643 | // ReceiveIssueEvent adds issue events to InfluxDB | |
c175644 | // Upload uploads all of the data in the
// uploadTargets map to GCS in parallel. The map is
// keyed on GCS path under the bucket | |
c175645 | // FileUploadWithMetadata returns an UploadFunc which copies all
// data from the file on disk into GCS object and also sets the provided
// metadata fields on the object. | |
c175646 | // DataUploadWithMetadata returns an UploadFunc which copies all
// data from src reader into GCS and also sets the provided metadata
// fields onto the object. | |
c175647 | // HasLabel checks if label is in the label set "issueLabels". | |
c175648 | // ImageTooBig checks if image is bigger than github limits | |
c175649 | // LevelFromPermissions adapts a repo permissions struct to the
// appropriate permission level used elsewhere | |
c175650 | // PermissionsFromLevel adapts a repo permission level to the
// appropriate permissions struct used elsewhere | |
c175651 | // newProwJobs returns a ProwJobs | |
c175652 | // GetApplicable returns the subset of blockers applicable to the specified branch. | |
c175653 | // serve starts a http server and serves Jenkins logs
// and prometheus metrics. Meant to be called inside
// a goroutine. | |
c175654 | // NewCountPlugin counts events and number of issues in given state, and for how long. | |
c175655 | // ReceiveComment creates a fake "commented" event | |
c175656 | // helper to update disk metrics | |
c175657 | // LogStatus outputs current status of all resources | |
c175658 | // SyncConfig updates resource list from a file | |
c175659 | // Metric returns a metric object with metrics filled in | |
c175660 | // FormatURL will return the GH markdown to show the image for a specific dogURL. | |
c175661 | // runAndSkipJobs executes the config.Presubmits that are requested and posts skipped statuses
// for the reporting jobs that are skipped | |
c175662 | // validateContextOverlap ensures that there will be no overlap in contexts between a set of jobs running and a set to skip | |
c175663 | // RunRequested executes the config.Presubmits that are requested | |
c175664 | // skipRequested posts skipped statuses for the config.Presubmits that are requested | |
c175665 | // Match is "labeled" with label | |
c175666 | // Match is "unlabeled" | |
c175667 | // AddFlags injects GitHub options into the given FlagSet. | |
c175668 | // AddFlagsWithoutDefaultGitHubTokenPath injects GitHub options into the given
// Flagset without setting a default for for the githubTokenPath, allowing to
// use an anonymous GitHub client | |
c175669 | // Validate validates GitHub options. | |
c175670 | // GitHubClientWithLogFields returns a GitHub client with extra logging fields | |
c175671 | // GitHubClient returns a GitHub client. | |
c175672 | // GitClient returns a Git client. | |
c175673 | // toMap returns maps the file name to its coverage for faster retrieval
// & membership check | |
c175674 | // findChanges compares the newList of coverage against the base list and returns the result | |
c175675 | // CreateDatabase for the MySQLConfig | |
c175676 | // ShouldReport returns if this prowjob should be reported by the github reporter | |
c175677 | // Report will report via reportlib | |
c175678 | // MarkComplete figures out which ARNs were in previous passes but not
// this one, and eliminates them. It should only be run after all
// resources have been marked. | |
c175679 | // NewJobAgent is a JobAgent constructor. | |
c175680 | // Start will start the job and periodically update it. | |
c175681 | // Jobs returns a thread-safe snapshot of the current job state. | |
c175682 | // ProwJobs returns a thread-safe snapshot of the current prow jobs. | |
c175683 | // GetProwJob finds the corresponding Prowjob resource from the provided job name and build ID | |
c175684 | // GetJobLog returns the job logs, works for both kubernetes and jenkins agent types. | |
c175685 | // unionStrings merges the parent and child items together | |
c175686 | // Apply returns a policy that merges the child into the parent | |
c175687 | // GetOrg returns the org config after merging in any global policies. | |
c175688 | // GetRepo returns the repo config after merging in any org policies. | |
c175689 | // GetBranch returns the branch config after merging in any repo policies. | |
c175690 | // GetPolicy returns the protection policy for the branch, after merging in presubmits. | |
c175691 | // UpdateIssueEvents fetches all events until we find the most recent we
// have in db, and saves everything in database | |
c175692 | // enqueueKey schedules an item for reconciliation. | |
c175693 | // prowJobStatus returns the desired state and description based on the build status. | |
c175694 | // buildEnv constructs the environment map for the job | |
c175695 | // defaultArguments will append each arg to the template, except where the argument name is already defined. | |
c175696 | // defaultEnv adds the map of environment variables to the container, except keys already defined. | |
c175697 | // injectSource adds the custom source container to call clonerefs correctly.
//
// Returns true if it added this container
//
// Does nothing if the build spec predefines Source | |
c175698 | // injectedSteps returns initial containers, a final container and an additional volume. | |
c175699 | // determineTimeout decides the timeout value used for build |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.