Module: Sentry::Client::IssueLink

Included in:
Sentry::Client
Defined in:
lib/sentry/client/issue_link.rb

Instance Method Summary collapse

Instance Method Details

Creates a link in Sentry corresponding to the provided Sentry issue and GitLab issue

Parameters:

  • integration_id (Integer, nil)

    Representing a global GitLab integration in Sentry. Nil for plugins.

  • sentry_issue_id (Integer)

    Id for an issue from Sentry

  • issue (Issue)

    Issue for which the link should be created


12
13
14
15
16
# File 'lib/sentry/client/issue_link.rb', line 12

def create_issue_link(integration_id, sentry_issue_id, issue)
  return create_plugin_link(sentry_issue_id, issue) unless integration_id

  create_global_integration_link(integration_id, sentry_issue_id, issue)
end