Documentation
¶
Index ¶
- func MakeEvent(event *info.Event) *info.Event
- func MakePREvent(event *info.Event, comment string) *types.PullRequestEvent
- func MakePushEvent(event *info.Event, changes []types.PushRequestEventChange, ...) *types.PushRequestEvent
- func MuxCommitInfo(t *testing.T, mux *http.ServeMux, event *info.Event, commit scm.Commit)
- func MuxCreateAndTestCommitStatus(t *testing.T, mux *http.ServeMux, event *info.Event, expectedDescSubstr string, ...)
- func MuxCreateComment(t *testing.T, mux *http.ServeMux, event *info.Event, ...)
- func MuxDefaultBranch(t *testing.T, mux *http.ServeMux, event *info.Event, ...)
- func MuxDirContent(t *testing.T, mux *http.ServeMux, event *info.Event, ...)
- func MuxFiles(_ *testing.T, mux *http.ServeMux, event *info.Event, _, targetDirName string, ...)
- func MuxListDir(t *testing.T, mux *http.ServeMux, event *info.Event, path string, ...)
- func MuxProjectGroupMembership(t *testing.T, mux *http.ServeMux, event *info.Event, groups []*ProjGroup)
- func MuxProjectMemberShip(t *testing.T, mux *http.ServeMux, event *info.Event, ...)
- func MuxPullRequestActivities(t *testing.T, mux *http.ServeMux, event *info.Event, prNumber int, ...)
- func MuxRepoMemberShip(t *testing.T, mux *http.ServeMux, event *info.Event, ...)
- func SetupBBDataCenterClient() (*scm.Client, *http.ServeMux, func(), string)
- type Action
- type Activity
- type Anchor
- type Branch
- type BuildStatus
- type Comment
- type CommitsStats
- type DiffPath
- type DiffStat
- type DiffStats
- type DiffType
- type FileType
- type Group
- type LineType
- type Pagination
- type Parent
- type ProjGroup
- type UserPermission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakePREvent ¶
func MakePREvent(event *info.Event, comment string) *types.PullRequestEvent
func MakePushEvent ¶
func MakePushEvent(event *info.Event, changes []types.PushRequestEventChange, commits []types.Commit) *types.PushRequestEvent
func MuxCommitInfo ¶
func MuxCreateComment ¶
func MuxDefaultBranch ¶
func MuxDirContent ¶
func MuxListDir ¶
func MuxProjectMemberShip ¶
func MuxRepoMemberShip ¶
Types ¶
type Activity ¶
type Activity struct { ID int `json:"id"` CreatedDate int `json:"createdDate"` User types.User `json:"user"` Action Action `json:"action"` CommentAction string `json:"commentAction"` Comment types.ActivityComment `json:"comment"` CommentAnchor Anchor `json:"commentAnchor"` FromHash string `json:"fromHash,omitempty"` PreviousFromHash string `json:"previousFromHash,omitempty"` PreviousToHash string `json:"previousToHash,omitempty"` ToHash string `json:"toHash,omitempty"` Added CommitsStats `json:"added"` Removed CommitsStats `json:"removed"` }
type Anchor ¶
type Anchor struct { DiffType DiffType `json:"diffType,omitempty"` Line int `json:"line,omitempty"` LineType LineType `json:"lineType,omitempty"` FileType FileType `json:"fileType,omitempty"` FromHash string `json:"fromHash,omitempty"` Path string `json:"path,omitempty"` SrcPath string `json:"srcPath,omitempty"` ToHash string `json:"toHash,omitempty"` }
type BuildStatus ¶
type CommitsStats ¶
type DiffStats ¶
type DiffStats struct { Pagination Values []*DiffStat }
type Pagination ¶
type UserPermission ¶
Click to show internal directories.
Click to hide internal directories.