Documentation
¶
Index ¶
- func BranchName(repoName string) string
- func BuildDeletePRDescription(repoName, requester, justification string) string
- func BuildDnsPRDescription(action, zone, recordKey, requester, justification string) string
- func BuildDopplerPRDescription(action, projectName, requester, justification string) string
- func BuildMemberPRDescription(action, team, username, role, requester, justification string) string
- func BuildOrgSettingsPRDescription(requester, justification string) string
- func BuildPRDescription(repoName, description, requester, justification string) string
- func BuildSettingsPRDescription(repoName, requester, justification string) string
- func DeleteBranchName(repoName string) string
- func DnsBranchName(action, recordKey string) string
- func DopplerBranchName(action, projectName string) string
- func MemberBranchName(action, team, username string) string
- func OrgSettingsBranchName() string
- func SettingsBranchName(repoName string) string
- type Client
- func (c *Client) CommentOnPR(ctx context.Context, prNumber int, body string) (err error)
- func (c *Client) CreateBranchFromMain(ctx context.Context, branchName string) (err error)
- func (c *Client) CreatePR(ctx context.Context, branch, title, body string) (_ string, err error)
- func (c *Client) GetFileContent(ctx context.Context, path string) (_ []byte, _ string, err error)
- func (c *Client) UpdateFile(ctx context.Context, branch, path string, content []byte, ...) (err error)
- func (c *Client) UpdatePRBody(ctx context.Context, prNumber int, appendText string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BranchName ¶
func BuildDnsPRDescription ¶
func BuildPRDescription ¶
func DeleteBranchName ¶
func DnsBranchName ¶
func DopplerBranchName ¶
func MemberBranchName ¶
func OrgSettingsBranchName ¶
func OrgSettingsBranchName() string
func SettingsBranchName ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
NewClient creates a GitHub client authenticated as a GitHub App installation. Outbound HTTP calls are wrapped with otelhttp for distributed trace propagation.
func (*Client) CommentOnPR ¶
CommentOnPR adds a comment to a pull request.
func (*Client) CreateBranchFromMain ¶
CreateBranchFromMain creates a new branch from the HEAD of main.
func (*Client) GetFileContent ¶
GetFileContent fetches a file from the default branch.
Click to show internal directories.
Click to hide internal directories.