testdrive

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Copyright 2017 HootSuite Media Inc.

Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Modified hereafter by contributors to runatlantis/atlantis.

Copyright 2017 HootSuite Media Inc.

Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Modified hereafter by contributors to runatlantis/atlantis.

Package testdrive is used by the testdrive command as a quick-start of Atlantis.

Copyright 2017 HootSuite Media Inc.

Licensed under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Modified hereafter by contributors to runatlantis/atlantis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start() error

Start begins the testdrive process. nolint: errcheck

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client used for GitHub interactions.

func (*Client) CheckForkSuccess

func (g *Client) CheckForkSuccess(ownerName string, forkRepoName string) bool

CheckForkSuccess waits for github fork to complete. Forks can take up to 5 minutes to complete according to GitHub.

func (*Client) CreateFork

func (g *Client) CreateFork(owner string, repoName string) error

CreateFork forks a GitHub repo into the user's account that is authenticated.

func (*Client) CreatePullRequest

func (g *Client) CreatePullRequest(ownerName string, repoName string, head string, base string) (string, error)

CreatePullRequest creates a GitHub pull request with custom title and description. If there's already a pull request open for this branch it will return successfully.

func (*Client) CreateWebhook

func (g *Client) CreateWebhook(ownerName string, repoName string, hookURL string) error

CreateWebhook creates a GitHub webhook to send requests to our local ngrok.

Jump to

Keyboard shortcuts

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