{"modulePath":"github.com/itsdalmo/github-pr-resource","version":"v0.3.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package models\n\n## Types\n\n```go\ntype CommitObject struct {\n\tID         string\n\tOID        string\n\tPushedDate githubv4.DateTime\n\tMessage    string\n\tAuthor     struct {\n\t\tUser struct {\n\t\t\tLogin string\n\t\t}\n\t}\n}\n```\nCommitObject represents the GraphQL commit node. [https://developer.github.com/v4/object/commit/](https://developer.github.com/v4/object/commit/)\n\n```go\ntype Metadata []*MetadataField\n```\nMetadata output from get/put steps.\n\n```go\nfunc (m *Metadata) Add(name, value string)\n```\nAdd a MetadataField to the Metadata.\n\n```go\ntype MetadataField struct {\n\tName  string `json:\"name\"`\n\tValue string `json:\"value\"`\n}\n```\nMetadataField ...\n\n```go\ntype PullRequest struct {\n\tPullRequestObject\n\tTip CommitObject\n}\n```\nPullRequest represents a pull request and includes the tip (commit).\n\n```go\ntype PullRequestObject struct {\n\tID          string\n\tNumber      int\n\tTitle       string\n\tURL         string\n\tBaseRefName string\n\tHeadRefName string\n}\n```\nPullRequestObject represents the GraphQL commit node. [https://developer.github.com/v4/object/commit/](https://developer.github.com/v4/object/commit/)\n\n```go\ntype Source struct {\n\tRepository    string   `json:\"repository\"`\n\tAccessToken   string   `json:\"access_token\"`\n\tPaths         []string `json:\"path\"`\n\tIgnorePaths   []string `json:\"ignore_path\"`\n\tDisableCISkip string   `json:\"disable_ci_skip\"`\n}\n```\nSource represents the configuration for the resource.\n\n```go\nfunc (s *Source) Validate() error\n```\nValidate the source configuration.\n\n```go\ntype Version struct {\n\tPR         string    `json:\"pr\"`\n\tCommit     string    `json:\"commit\"`\n\tPushedDate time.Time `json:\"pushed,omitempty\"`\n}\n```\nVersion communicated with Concourse. ID is the Github Global ID.\n\n```go\nfunc NewVersion(p *PullRequest) Version\n```\nNewVersion constructs a new Version.\n\n","path":"github.com/itsdalmo/github-pr-resource/src/models","name":"models","synopsis":"","isRedistributable":true}
