Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRepositoryURL ¶
ParseRepositoryURL はGitHub URLからowner/repoを抽出
Types ¶
type BranchProtectionSettings ¶
type BranchProtectionSettings struct {
Branch string
RequiredStatusChecks []string
RequiredReviews int
DismissStaleReviews bool
RequireCodeOwnerReviews bool
RestrictPushes bool
}
BranchProtectionSettings はブランチ保護設定
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client はGitHub API操作を行う
func (*Client) SetupRepository ¶
func (c *Client) SetupRepository(settings *RepositorySettings) error
SetupRepository はリポジトリの基本設定を行う
type LabelConfig ¶
LabelConfig はラベル設定
type RepositorySettings ¶
type RepositorySettings struct {
BranchProtection BranchProtectionSettings
Labels []LabelConfig
RequiredReviews int
StatusChecks []string
AutoMerge bool
DeleteBranchOnMerge bool
}
RepositorySettings はリポジトリ設定
Click to show internal directories.
Click to hide internal directories.