AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

PullRequestTarget

import "github.com/aws/aws-sdk-go/service/codecommit"

type PullRequestTarget struct { DestinationCommit *string `locationName:"destinationCommit" type:"string"` DestinationReference *string `locationName:"destinationReference" type:"string"` MergeBase *string `locationName:"mergeBase" type:"string"` MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"` RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` SourceCommit *string `locationName:"sourceCommit" type:"string"` SourceReference *string `locationName:"sourceReference" type:"string"` }

Returns information about a pull request target.

DestinationCommit

Type: *string

The full commit ID that is the tip of the destination branch. This is the commit where the pull request was or will be merged.

DestinationReference

Type: *string

The branch of the repository where the pull request changes will be merged into. Also known as the destination branch.

MergeBase

Type: *string

The commit ID of the most recent commit that the source branch and the destination branch have in common.

MergeMetadata

Returns information about a merge or potential merge between a source reference and a destination reference in a pull request.

RepositoryName

Type: *string

The name of the repository that contains the pull request source and destination branches.

SourceCommit

Type: *string

The full commit ID of the tip of the source branch used to create the pull request. If the pull request branch is updated by a push while the pull request is open, the commit ID will change to reflect the new tip of the branch.

SourceReference

Type: *string

The branch of the repository that contains the changes for the pull request. Also known as the source branch.

Method

GoString

func (s PullRequestTarget) GoString() string

GoString returns the string representation

SetDestinationCommit

func (s *PullRequestTarget) SetDestinationCommit(v string) *PullRequestTarget

SetDestinationCommit sets the DestinationCommit field's value.

SetDestinationReference

func (s *PullRequestTarget) SetDestinationReference(v string) *PullRequestTarget

SetDestinationReference sets the DestinationReference field's value.

SetMergeBase

func (s *PullRequestTarget) SetMergeBase(v string) *PullRequestTarget

SetMergeBase sets the MergeBase field's value.

SetMergeMetadata

func (s *PullRequestTarget) SetMergeMetadata(v *MergeMetadata) *PullRequestTarget

SetMergeMetadata sets the MergeMetadata field's value.

SetRepositoryName

func (s *PullRequestTarget) SetRepositoryName(v string) *PullRequestTarget

SetRepositoryName sets the RepositoryName field's value.

SetSourceCommit

func (s *PullRequestTarget) SetSourceCommit(v string) *PullRequestTarget

SetSourceCommit sets the SourceCommit field's value.

SetSourceReference

func (s *PullRequestTarget) SetSourceReference(v string) *PullRequestTarget

SetSourceReference sets the SourceReference field's value.

String

func (s PullRequestTarget) String() string

String returns the string representation

On this page: