_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c175500
// Cleanup all of the generated files
c175501
// MDTemplateEngine runs the input through github flavored markdown before sending it to the Plush engine.
c175502
// Update updates the configmap with the data from the identified files
c175503
// FilterChanges determines which of the changes are relevant for config updating, returning mapping of // config map to key to filename to update that key from.
c175504
// Get Labels from Regexp matches
c175505
// getLabelsFromGenericMatches returns label matches with extra labels if those // have been configured in the plugin config.
c175506
// Start will begin polling the config file at the path. If the first load // fails, Start will return the error and abort. Future load failures will log // the failure message but continue attempting to load.
c175507
// Subscribe registers the channel for messages on config reload. // The caller can expect a copy of the previous and current config // to be sent down the subscribed channel when a new configuration // is loaded.
c175508
// Config returns the latest config. Do not modify the config.
c175509
// Set sets the config. Useful for testing.
c175510
// IsMember returns true if user is in org.
c175511
// ListIssueComments returns comments.
c175512
// ListPullRequestComments returns review comments.
c175513
// ListReviews returns reviews.
c175514
// ListIssueEvents returns issue events
c175515
// CreateComment adds a comment to a PR
c175516
// CreateReview adds a review to a PR
c175517
// CreateCommentReaction adds emoji to a comment.
c175518
// CreateIssueReaction adds an emoji to an issue.
c175519
// DeleteComment deletes a comment.
c175520
// DeleteStaleComments deletes comments flagged by isStale.
c175521
// GetPullRequest returns details about the PR.
c175522
// GetPullRequestChanges returns the file modifications in a PR.
c175523
// GetRef returns the hash of a ref.
c175524
// DeleteRef returns an error indicating if deletion of the given ref was successful
c175525
// GetSingleCommit returns a single commit.
c175526
// CreateStatus adds a status context to a commit.
c175527
// ListStatuses returns individual status contexts on a commit.
c175528
// GetCombinedStatus returns the overall status for a commit.
c175529
// GetRepoLabels gets labels in a repo.
c175530
// GetIssueLabels gets labels on an issue
c175531
// AddLabel adds a label
c175532
// RemoveLabel removes a label
c175533
// FindIssues returns f.Issues
c175534
// AssignIssue adds assignees.
c175535
// GetFile returns the bytes of the file.
c175536
// ListTeams return a list of fake teams that correspond to the fake team members returned by ListTeamMembers
c175537
// ListTeamMembers return a fake team with a single "sig-lead" GitHub teammember
c175538
// IsCollaborator returns true if the user is a collaborator of the repo.
c175539
// ListCollaborators lists the collaborators.
c175540
// ClearMilestone removes the milestone
c175541
// SetMilestone sets the milestone.
c175542
// ListMilestones lists milestones.
c175543
// ListPRCommits lists commits for a given PR.
c175544
// GetRepoProjects returns the list of projects under a repo.
c175545
// GetOrgProjects returns the list of projects under an org
c175546
// GetProjectColumns returns the list of columns for a given project.
c175547
// CreateProjectCard creates a project card under a given column.
c175548
// DeleteProjectCard deletes the project card of a specific issue or PR
c175549
// MoveProjectCard moves a specific project card to a specified column in the same project
c175550
// CreateDatabaseClient creates and connects a new instance of an InfluxDB // It is created based on the fields set in the configuration.
c175551
// Push a point to the database
c175552
// NewProwJobWithAnnotation initializes a ProwJob out of a ProwJobSpec with annotations.
c175553
// NewProwJob initializes a ProwJob out of a ProwJobSpec.
c175554
// NewPresubmit converts a config.Presubmit into a prowapi.ProwJob. // The prowapi.Refs are configured correctly per the pr, baseSHA. // The eventGUID becomes a github.EventGUID label.
c175555
// PresubmitSpec initializes a ProwJobSpec for a given presubmit job.
c175556
// PostsubmitSpec initializes a ProwJobSpec for a given postsubmit job.
c175557
// PeriodicSpec initializes a ProwJobSpec for a given periodic job.
c175558
// BatchSpec initializes a ProwJobSpec for a given batch job and ref spec.
c175559
// PartitionActive separates the provided prowjobs into pending and triggered // and returns them inside channels so that they can be consumed in parallel // by different goroutines. Complete prowjobs are filtered out. Controller // loops need to handle pending jobs first so they can conform to maximum // concurrency r...
c175560
// ProwJobFields extracts logrus fields from a prowjob useful for logging.
c175561
// ClusterToCtx converts the prow job's cluster to a cluster context
c175562
// AddCommand registers new help text for a bot command.
c175563
// Get takes name of the prowJob, and returns the corresponding prowJob object, and an error if there is any.
c175564
// Watch returns a watch.Interface that watches the requested prowJobs.
c175565
// Delete takes name of the prowJob and deletes it. Returns an error if one occurs.
c175566
// Patch applies the patch and returns the patched prowJob.
c175567
// MergeMethod returns the merge method to use for a repo. The default of merge is // returned when not overridden.
c175568
// Query returns the corresponding github search string for the tide query.
c175569
// ForRepo indicates if the tide query applies to the specified repo.
c175570
// OrgExceptionsAndRepos determines which orgs and repos a set of queries cover. // Output is returned as a mapping from 'included org'->'repos excluded in the org' // and a set of included repos.
c175571
// QueryMap creates a QueryMap from TideQueries
c175572
// ForRepo returns the tide queries that apply to a repo.
c175573
// Validate returns an error if any contexts are listed more than once in the config.
c175574
// GetTideContextPolicy parses the prow config to find context merge options. // If none are set, it will use the prow jobs configured and use the default github combined status. // Otherwise if set it will use the branch protection setting, or the listed jobs.
c175575
// IsOptional checks whether a context can be ignored. // Will return true if // - context is registered as optional // - required contexts are registered and the context provided is not required // Will return false otherwise. Every context is required.
c175576
// MissingRequiredContexts discard the optional contexts and only look of extra required contexts that are not provided.
c175577
// ValidateWebhook ensures that the provided request conforms to the // format of a GitHub webhook and the payload can be validated with // the provided hmac secret. It returns the event type, the event guid, // the payload of the request, whether the webhook is valid or not, // and finally the resultant HTTP status co...
c175578
// HelpProvider constructs the PluginHelp for this plugin that takes into account enabled repositories. // HelpProvider defines the type for function that construct the PluginHelp for plugins.
c175579
// HandleEvent handles a GitHub PR event to determine if the "needs-rebase" // label needs to be added or removed. It depends on GitHub mergeability check // to decide the need for a rebase.
c175580
// HandleAll checks all orgs and repos that enabled this plugin for open PRs to // determine if the "needs-rebase" label needs to be added or removed. It // depends on GitHub's mergeability check to decide the need for a rebase.
c175581
// NewDryRunProwJobClient creates a new client that uses deck as a read-only proxy for ProwJob data
c175582
// Create does nothing on a dry-run client
c175583
// Update does nothing on a dry-run client
c175584
// UpdateStatus does nothing on a dry-run client
c175585
// Delete does nothing on a dry-run client
c175586
// DeleteCollection does nothing on a dry-run client
c175587
// Get does nothing on a dry-run client
c175588
// List reaches out to `deck` to retrieve the ProwJobs on the cluster via proxy
c175589
// Watch does nothing on a dry-run client
c175590
// Patch does nothing on a dry-run client
c175591
// hasSynced returns true when every prowjob and pipeline informer has synced.
c175592
// Run starts threads workers, returning after receiving a stop signal.
c175593
// runWorker dequeues to reconcile, until the queue has closed.
c175594
// fromKey converts toKey back into its parts
c175595
// enqueueKey schedules an item for reconciliation
c175596
// finalState returns true if the prowjob has already finished
c175597
// description computes the ProwJobStatus description for this condition or falling back to a default if none is provided.
c175598
// prowJobStatus returns the desired state and description based on the pipeline status
c175599
// pipelineMeta builds the pipeline metadata from prow job definition