Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) OnBranchMerge ¶
OnBranchMerge handles the merge event and updates the last commit info
@Description Update last commit info, based on merge event of MR
@Accept json
@Param X-Gitlab-Event header string true "Gitlab event"
@Param X-Gitlab-Token header string true "Gitlab token"
@Param body body gitlab.PushRequestHook true "Gitlab request body"
@Success 200 {object} api.Response
@Failure 400 {object} api.Response
@Failure 401 {object} api.Response
@Failure 500 {object} api.Response
@Router /api/v1/asana/merge [post]
func (*Handler) SyncMRDescriptionWithAsanaTasks ¶
SyncMRDescriptionWithAsanaTasks updates the merge request description with the task info based on the mentioned tasks in the branch name
@Description Update merge request description with the task info
@Accept json
@Param X-Gitlab-Event header string true "Gitlab event"
@Param X-Gitlab-Token header string true "Gitlab token"
@Param body body gitlab.MergeRequestHook true "Gitlab request body"
@Success 200 {object} api.Response
@Failure 400 {object} api.Response
@Failure 401 {object} api.Response
@Failure 500 {object} api.Response
@Router /api/v1/gitlab/sync_description [post]
func (*Handler) UpdateLastCommitInfo ¶
UpdateLastCommitInfo updates the last commit info of a task
@Description Update last commit info, in custom field or creating a comment
@Accept json
@Param X-Gitlab-Event header string true "Gitlab event"
@Param X-Gitlab-Token header string true "Gitlab token"
@Param body body gitlab.PushRequestHook true "Gitlab request body"
@Success 200 {object} api.Response
@Failure 400 {object} api.Response
@Failure 401 {object} api.Response
@Failure 500 {object} api.Response
@Router /api/v1/asana/push [post]
Click to show internal directories.
Click to hide internal directories.