2021-06-08 01:23:25 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module GraphqlTriggers
|
|
|
|
def self.issuable_assignees_updated(issuable)
|
|
|
|
GitlabSchema.subscriptions.trigger('issuableAssigneesUpdated', { issuable_id: issuable.to_gid }, issuable)
|
|
|
|
end
|
2022-01-26 12:08:38 +05:30
|
|
|
|
|
|
|
def self.issue_crm_contacts_updated(issue)
|
|
|
|
GitlabSchema.subscriptions.trigger('issueCrmContactsUpdated', { issuable_id: issue.to_gid }, issue)
|
|
|
|
end
|
2022-04-04 11:22:00 +05:30
|
|
|
|
|
|
|
def self.issuable_title_updated(issuable)
|
|
|
|
GitlabSchema.subscriptions.trigger('issuableTitleUpdated', { issuable_id: issuable.to_gid }, issuable)
|
|
|
|
end
|
2022-06-21 17:19:12 +05:30
|
|
|
|
2022-11-25 23:54:43 +05:30
|
|
|
def self.issuable_description_updated(issuable)
|
|
|
|
GitlabSchema.subscriptions.trigger('issuableDescriptionUpdated', { issuable_id: issuable.to_gid }, issuable)
|
|
|
|
end
|
|
|
|
|
2022-06-21 17:19:12 +05:30
|
|
|
def self.issuable_labels_updated(issuable)
|
|
|
|
GitlabSchema.subscriptions.trigger('issuableLabelsUpdated', { issuable_id: issuable.to_gid }, issuable)
|
|
|
|
end
|
2022-08-27 11:52:29 +05:30
|
|
|
|
|
|
|
def self.issuable_dates_updated(issuable)
|
|
|
|
GitlabSchema.subscriptions.trigger('issuableDatesUpdated', { issuable_id: issuable.to_gid }, issuable)
|
|
|
|
end
|
2022-11-25 23:54:43 +05:30
|
|
|
|
|
|
|
def self.merge_request_reviewers_updated(merge_request)
|
|
|
|
GitlabSchema.subscriptions.trigger(
|
|
|
|
'mergeRequestReviewersUpdated',
|
|
|
|
{ issuable_id: merge_request.to_gid },
|
|
|
|
merge_request
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.merge_request_merge_status_updated(merge_request)
|
|
|
|
GitlabSchema.subscriptions.trigger(
|
|
|
|
'mergeRequestMergeStatusUpdated',
|
|
|
|
{ issuable_id: merge_request.to_gid },
|
|
|
|
merge_request
|
|
|
|
)
|
|
|
|
end
|
2021-06-08 01:23:25 +05:30
|
|
|
end
|
2022-10-11 01:57:18 +05:30
|
|
|
|
|
|
|
GraphqlTriggers.prepend_mod
|