_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c175500
test
// Cleanup all of the generated files
{ "resource": "" }
c175501
test
// MDTemplateEngine runs the input through github flavored markdown before sending it to the Plush engine.
{ "resource": "" }
c175502
test
// Update updates the configmap with the data from the identified files
{ "resource": "" }
c175503
test
// 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.
{ "resource": "" }
c175504
test
// Get Labels from Regexp matches
{ "resource": "" }
c175505
test
// getLabelsFromGenericMatches returns label matches with extra labels if those // have been configured in the plugin config.
{ "resource": "" }
c175506
test
// 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.
{ "resource": "" }
c175507
test
// 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.
{ "resource": "" }
c175508
test
// Config returns the latest config. Do not modify the config.
{ "resource": "" }
c175509
test
// Set sets the config. Useful for testing.
{ "resource": "" }
c175510
test
// IsMember returns true if user is in org.
{ "resource": "" }
c175511
test
// ListIssueComments returns comments.
{ "resource": "" }
c175512
test
// ListPullRequestComments returns review comments.
{ "resource": "" }
c175513
test
// ListReviews returns reviews.
{ "resource": "" }
c175514
test
// ListIssueEvents returns issue events
{ "resource": "" }
c175515
test
// CreateComment adds a comment to a PR
{ "resource": "" }
c175516
test
// CreateReview adds a review to a PR
{ "resource": "" }
c175517
test
// CreateCommentReaction adds emoji to a comment.
{ "resource": "" }
c175518
test
// CreateIssueReaction adds an emoji to an issue.
{ "resource": "" }
c175519
test
// DeleteComment deletes a comment.
{ "resource": "" }
c175520
test
// DeleteStaleComments deletes comments flagged by isStale.
{ "resource": "" }
c175521
test
// GetPullRequest returns details about the PR.
{ "resource": "" }
c175522
test
// GetPullRequestChanges returns the file modifications in a PR.
{ "resource": "" }
c175523
test
// GetRef returns the hash of a ref.
{ "resource": "" }
c175524
test
// DeleteRef returns an error indicating if deletion of the given ref was successful
{ "resource": "" }
c175525
test
// GetSingleCommit returns a single commit.
{ "resource": "" }
c175526
test
// CreateStatus adds a status context to a commit.
{ "resource": "" }
c175527
test
// ListStatuses returns individual status contexts on a commit.
{ "resource": "" }
c175528
test
// GetCombinedStatus returns the overall status for a commit.
{ "resource": "" }
c175529
test
// GetRepoLabels gets labels in a repo.
{ "resource": "" }
c175530
test
// GetIssueLabels gets labels on an issue
{ "resource": "" }
c175531
test
// AddLabel adds a label
{ "resource": "" }
c175532
test
// RemoveLabel removes a label
{ "resource": "" }
c175533
test
// FindIssues returns f.Issues
{ "resource": "" }
c175534
test
// AssignIssue adds assignees.
{ "resource": "" }
c175535
test
// GetFile returns the bytes of the file.
{ "resource": "" }
c175536
test
// ListTeams return a list of fake teams that correspond to the fake team members returned by ListTeamMembers
{ "resource": "" }
c175537
test
// ListTeamMembers return a fake team with a single "sig-lead" GitHub teammember
{ "resource": "" }
c175538
test
// IsCollaborator returns true if the user is a collaborator of the repo.
{ "resource": "" }
c175539
test
// ListCollaborators lists the collaborators.
{ "resource": "" }
c175540
test
// ClearMilestone removes the milestone
{ "resource": "" }
c175541
test
// SetMilestone sets the milestone.
{ "resource": "" }
c175542
test
// ListMilestones lists milestones.
{ "resource": "" }
c175543
test
// ListPRCommits lists commits for a given PR.
{ "resource": "" }
c175544
test
// GetRepoProjects returns the list of projects under a repo.
{ "resource": "" }
c175545
test
// GetOrgProjects returns the list of projects under an org
{ "resource": "" }
c175546
test
// GetProjectColumns returns the list of columns for a given project.
{ "resource": "" }
c175547
test
// CreateProjectCard creates a project card under a given column.
{ "resource": "" }
c175548
test
// DeleteProjectCard deletes the project card of a specific issue or PR
{ "resource": "" }
c175549
test
// MoveProjectCard moves a specific project card to a specified column in the same project
{ "resource": "" }
c175550
test
// CreateDatabaseClient creates and connects a new instance of an InfluxDB // It is created based on the fields set in the configuration.
{ "resource": "" }
c175551
test
// Push a point to the database
{ "resource": "" }
c175552
test
// NewProwJobWithAnnotation initializes a ProwJob out of a ProwJobSpec with annotations.
{ "resource": "" }
c175553
test
// NewProwJob initializes a ProwJob out of a ProwJobSpec.
{ "resource": "" }
c175554
test
// 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.
{ "resource": "" }
c175555
test
// PresubmitSpec initializes a ProwJobSpec for a given presubmit job.
{ "resource": "" }
c175556
test
// PostsubmitSpec initializes a ProwJobSpec for a given postsubmit job.
{ "resource": "" }
c175557
test
// PeriodicSpec initializes a ProwJobSpec for a given periodic job.
{ "resource": "" }
c175558
test
// BatchSpec initializes a ProwJobSpec for a given batch job and ref spec.
{ "resource": "" }
c175559
test
// 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...
{ "resource": "" }
c175560
test
// ProwJobFields extracts logrus fields from a prowjob useful for logging.
{ "resource": "" }
c175561
test
// ClusterToCtx converts the prow job's cluster to a cluster context
{ "resource": "" }
c175562
test
// AddCommand registers new help text for a bot command.
{ "resource": "" }
c175563
test
// Get takes name of the prowJob, and returns the corresponding prowJob object, and an error if there is any.
{ "resource": "" }
c175564
test
// Watch returns a watch.Interface that watches the requested prowJobs.
{ "resource": "" }
c175565
test
// Delete takes name of the prowJob and deletes it. Returns an error if one occurs.
{ "resource": "" }
c175566
test
// Patch applies the patch and returns the patched prowJob.
{ "resource": "" }
c175567
test
// MergeMethod returns the merge method to use for a repo. The default of merge is // returned when not overridden.
{ "resource": "" }
c175568
test
// Query returns the corresponding github search string for the tide query.
{ "resource": "" }
c175569
test
// ForRepo indicates if the tide query applies to the specified repo.
{ "resource": "" }
c175570
test
// 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.
{ "resource": "" }
c175571
test
// QueryMap creates a QueryMap from TideQueries
{ "resource": "" }
c175572
test
// ForRepo returns the tide queries that apply to a repo.
{ "resource": "" }
c175573
test
// Validate returns an error if any contexts are listed more than once in the config.
{ "resource": "" }
c175574
test
// 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.
{ "resource": "" }
c175575
test
// 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.
{ "resource": "" }
c175576
test
// MissingRequiredContexts discard the optional contexts and only look of extra required contexts that are not provided.
{ "resource": "" }
c175577
test
// 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...
{ "resource": "" }
c175578
test
// 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.
{ "resource": "" }
c175579
test
// 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.
{ "resource": "" }
c175580
test
// 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.
{ "resource": "" }
c175581
test
// NewDryRunProwJobClient creates a new client that uses deck as a read-only proxy for ProwJob data
{ "resource": "" }
c175582
test
// Create does nothing on a dry-run client
{ "resource": "" }
c175583
test
// Update does nothing on a dry-run client
{ "resource": "" }
c175584
test
// UpdateStatus does nothing on a dry-run client
{ "resource": "" }
c175585
test
// Delete does nothing on a dry-run client
{ "resource": "" }
c175586
test
// DeleteCollection does nothing on a dry-run client
{ "resource": "" }
c175587
test
// Get does nothing on a dry-run client
{ "resource": "" }
c175588
test
// List reaches out to `deck` to retrieve the ProwJobs on the cluster via proxy
{ "resource": "" }
c175589
test
// Watch does nothing on a dry-run client
{ "resource": "" }
c175590
test
// Patch does nothing on a dry-run client
{ "resource": "" }
c175591
test
// hasSynced returns true when every prowjob and pipeline informer has synced.
{ "resource": "" }
c175592
test
// Run starts threads workers, returning after receiving a stop signal.
{ "resource": "" }
c175593
test
// runWorker dequeues to reconcile, until the queue has closed.
{ "resource": "" }
c175594
test
// fromKey converts toKey back into its parts
{ "resource": "" }
c175595
test
// enqueueKey schedules an item for reconciliation
{ "resource": "" }
c175596
test
// finalState returns true if the prowjob has already finished
{ "resource": "" }
c175597
test
// description computes the ProwJobStatus description for this condition or falling back to a default if none is provided.
{ "resource": "" }
c175598
test
// prowJobStatus returns the desired state and description based on the pipeline status
{ "resource": "" }
c175599
test
// pipelineMeta builds the pipeline metadata from prow job definition
{ "resource": "" }