githubImpl

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package githubImpl implements the zedpm-plugin-github plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct{}

Plugin implements plugin.Interface for handling github-related tasks.

func (*Plugin) Cancel

func (p *Plugin) Cancel(ctx context.Context, task plugin.Task) error

Cancel is a no-op.

func (*Plugin) Complete

func (p *Plugin) Complete(ctx context.Context, task plugin.Task) error

Complete is a no-op.

func (*Plugin) Goal

Goal returns plugin.ErrUnsupportedGoal.

func (*Plugin) Implements

func (p *Plugin) Implements(context.Context) ([]plugin.TaskDescription, error)

Implements returns the task descriptions for the /release/mint/github and /release/publish/github tasks.

func (*Plugin) Prepare

func (p *Plugin) Prepare(
	_ context.Context,
	task string,
) (plugin.Task, error)

Prepare returns the implemented tasks.

type ReleaseMintTask

type ReleaseMintTask struct {
	plugin.TaskBoilerplate
	zGithub.Github
}

ReleaseMintTask implements the /release/mint/github task.

func (*ReleaseMintTask) CreateGithubPullRequest

func (s *ReleaseMintTask) CreateGithubPullRequest(ctx context.Context) error

CreateGithubPullRequest creates the PR on github for monitoring the test results for release testing. This will also be used to merge the release branch when testing passes.

func (*ReleaseMintTask) End

End configures CreateGithubPullRequest to run.

func (*ReleaseMintTask) Setup

func (s *ReleaseMintTask) Setup(ctx context.Context) error

Setup configures the github and git clients.

type ReleasePublishTask

type ReleasePublishTask struct {
	plugin.TaskBoilerplate
	zGithub.Github
}

ReleasePublishTask implements the /release/publish/github task.

func (*ReleasePublishTask) Check

func (f *ReleasePublishTask) Check(ctx context.Context) error

Check executes CheckReadyForMerge in a loop until either the Github checks pass or 15 minutes have elapsed, whichever comes first.

func (*ReleasePublishTask) CheckReadyForMerge

func (f *ReleasePublishTask) CheckReadyForMerge(ctx context.Context) error

CheckReadyForMerge ensures that all the required tests are passing.

func (*ReleasePublishTask) CreateRelease

func (f *ReleasePublishTask) CreateRelease(ctx context.Context) error

CreateRelease creates a release on github for the release.

func (*ReleasePublishTask) End added in v0.1.0

Run configures MergePullRequest and CreateRelease to run.

func (*ReleasePublishTask) MergePullRequest

func (f *ReleasePublishTask) MergePullRequest(ctx context.Context) error

MergePullRequest merges the PR into master.

func (*ReleasePublishTask) Setup

func (s *ReleasePublishTask) Setup(ctx context.Context) error

Setup configures the github and git clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL