Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) CreatePRComment(org, repo string, number int, comment string) error
- func (c *Client) DeletePRComment(org, repo string, updateID int64) error
- func (c *Client) FindCommentID(org, repo string, number int, commentKey, commentID string) (*int64, *string, error)
- func (c *Client) GetPREntry(org, repo string, number int) (*PREntry, error)
- func (c *Client) GetPRSHAMerged(org, repo string, number int, sha string) (*time.Time, error)
- func (c *Client) GetPRTitle(org, repo string, number int) (*string, error)
- func (c *Client) GetPRURL(org, repo string, number int) (*string, error)
- func (c *Client) IsPrRecentlyMerged(org, repo string, number int) (*time.Time, *string, error)
- func (c *Client) IsWithinRateLimitThreshold() bool
- func (c *Client) PRFetch(org, repo string, number int) (prEntry *PREntry, err error)
- type GitHubOrg
- type PREntry
Constants ¶
View Source
const GitHubAppID = 1046118
View Source
const OpenshiftEngOrg = GitHubOrg("openshift-eng")
View Source
const OpenshiftOrg = GitHubOrg("openshift")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreatePRComment ¶
func (*Client) DeletePRComment ¶
func (*Client) FindCommentID ¶
func (*Client) GetPREntry ¶
func (*Client) GetPRSHAMerged ¶
GetPRSHAMerged returns the merge time for a PR/SHA combination. The caching is designed to minimize queries to GitHub. We basically have to handle these cases:
- the PR doesn't exist (cache as nil)
- the PR is unmerged (cache with nil mergedAt)
- the PR is merged with a different SHA (cache with the merged sha, return nil)
- the PR is merged with the same SHA (cache with the merged sha, return merged time)
func (*Client) GetPRTitle ¶
func (*Client) IsPrRecentlyMerged ¶
func (*Client) IsWithinRateLimitThreshold ¶
Click to show internal directories.
Click to hide internal directories.