Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClient ¶
func IsLatestRelease ¶
func LatestRelease ¶
func LatestReleaseOf ¶
Types ¶
type AssociatedPRsQuery ¶
type AssociatedPRsQuery struct {
Repository struct {
DefaultBranch struct {
Target struct {
Commit struct {
Oid string
History struct {
Nodes []struct {
Oid string
MessageHeadline string
AuthoredDate githubv4.DateTime
Author struct {
User struct {
Login string
}
}
AssociatedPullRequests struct {
Nodes []struct {
Title string
Number int
Permalink string
Author struct {
Login string
}
Labels struct {
Nodes []struct {
Name string
}
} `graphql:"labels(first: 8)"`
}
} `graphql:"associatedPullRequests(first: 4)"`
}
} `graphql:"history(since: $createdAt)"`
} `graphql:"... on Commit"`
} `graphql:"target"`
} `graphql:"defaultBranchRef"`
} `graphql:"repository(owner: $owner, name: $name)"`
}
type MatchingCommitQuery ¶
type MatchingCommitQuery struct {
Repository struct {
Object struct {
Commit struct {
Oid string
CommittedDate githubv4.DateTime
} `graphql:"... on Commit"`
} `graphql:"object(expression: $expr)"`
} `graphql:"repository(owner: $owner, name: $name)"`
}
func FindMatchingCommit ¶
func FindMatchingCommit(client *githubv4.Client, repo []string, ref string) MatchingCommitQuery
type PullRequest ¶
type PullRequest struct {
RelatedCommit Commit
Title string
Number int
Permalink string
Author string
Labels []string
}
PullRequest is a type holding relevant information about pull request used in generating changelog
func FindAssociatedPRs ¶
func FindAssociatedPRs(client *githubv4.Client, repo []string, matchingCommit MatchingCommitQuery) []PullRequest
Click to show internal directories.
Click to hide internal directories.