2021-04-23 05:10:03 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module GraphqlTriggers
|
|
|
|
def self.issuable_assignees_updated(issuable)
|
|
|
|
GitlabSchema.subscriptions.trigger('issuableAssigneesUpdated', { issuable_id: issuable.to_gid }, issuable)
|
|
|
|
end
|
2021-11-23 13:12:49 -05:00
|
|
|
|
|
|
|
def self.issue_crm_contacts_updated(issue)
|
|
|
|
GitlabSchema.subscriptions.trigger('issueCrmContactsUpdated', { issuable_id: issue.to_gid }, issue)
|
|
|
|
end
|
2022-02-11 16:12:17 -05:00
|
|
|
|
|
|
|
def self.issuable_title_updated(issuable)
|
|
|
|
GitlabSchema.subscriptions.trigger('issuableTitleUpdated', { issuable_id: issuable.to_gid }, issuable)
|
|
|
|
end
|
2022-04-01 14:08:46 -04:00
|
|
|
|
|
|
|
def self.issuable_labels_updated(issuable)
|
|
|
|
GitlabSchema.subscriptions.trigger('issuableLabelsUpdated', { issuable_id: issuable.to_gid }, issuable)
|
|
|
|
end
|
2021-04-23 05:10:03 -04:00
|
|
|
end
|