 
 class BitbucketIssue extends NotificationPlugin
   BASE_URL = "https://bitbucket.org"
-  @receiveEvent: (config, event, callback) ->
-    return if event?.trigger?.type == "reopened"
 
+  @openIssue: (config, event, callback) ->
     query_object =
       "title": @title(event)
       "content": @markdownBody(event)

          id: res.body.local_id
          url: url.resolve(BASE_URL, "#{config.repo}/issue/#{res.body.local_id}")

module.exports = BitbucketIssue


    # Send the request
    @request
      .post(url.resolve(BASE_URL, "/api/1.0/repositories/#{config.username}/#{config.repo}/issues"))
      .timeout(4000)
      .auth(config.username, config.password)
      .set('Accept', 'application/json')
