Documentation
¶
Index ¶
Constants ¶
View Source
const ( VCSListing = "list" VCSCheckPR = "checkPR" VCSCommentPR = "addComment" VCSAddRoleToPR = "addRoleToPR" VCSSetStatusOfPR = "setStatusOfPR" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RunOptionsIntegrationVCS ¶
type RunOptionsIntegrationVCS struct { VCSPluginName string `json:"vcs_plugin_name,omitempty"` Domain string `json:"domain,omitempty"` Namespace string `json:"namespace,omitempty"` Repository string `json:"repository,omitempty"` PullRequestID string `json:"pull_request_id,omitempty"` Action string `json:"action,omitempty"` Login string `json:"login,omitempty"` Language string `json:"language,omitempty"` OutputPath string `json:"output_path,omitempty"` Role string `json:"role,omitempty"` Status string `json:"status,omitempty"` Comment string `json:"comment,omitempty"` CommentFile string `json:"comment_file,omitempty"` AttachFiles []string `json:"attach_files,omitempty"` }
RunOptionsIntegrationVCS holds the arguments for VCS integration actions.
type VCSIntegrator ¶
type VCSIntegrator struct { PluginName string // Name of the VCS plugin to use Action string // Action to perform // contains filtered or unexported fields }
VCSIntegrator represents the configuration and behavior of VCS integration actions.
func New ¶
func New(pluginName, action string, logger hclog.Logger) *VCSIntegrator
New creates a new VCSIntegrator instance with the provided configuration.
func (*VCSIntegrator) IntegrationAction ¶
func (i *VCSIntegrator) IntegrationAction(cfg *config.Config, actionRequest interface{}) (shared.GenericLaunchesResult, error)
IntegrationAction executes the integration action using the VCS plugin.
func (*VCSIntegrator) PrepIntegrationRequest ¶
func (i *VCSIntegrator) PrepIntegrationRequest(cfg *config.Config, options *RunOptionsIntegrationVCS, repo shared.RepositoryParams) (interface{}, error)
PrepIntegrationRequest prepares the integration request based on the specified action.
Click to show internal directories.
Click to hide internal directories.