Giter Site home page Giter Site logo

errbot-plugin-sentry's Introduction

errbot-plugin-sentry

#sentry #github #errbot #slack

errbot sentry github

๐Ÿ“š Documentation

This plugin is designed to be run inside an errbot-based bot installed in your Slack workspace. Its structure points to the Sentry Cloud, but apparently you just need to adjust the URLs in the sentry.py if your Sentry is hosted on-premise.

The idea is to give autonomy to any developer in an IT Engineering structure to create a project within Sentry instead of having to open a ticket and wait for the activity to be done. When invoked, the bot will:

  1. create a new project in Sentry based on input from a requester and already assign it to a previously created team
  2. if the Sentry organization has integration with Github, it will add the repository informed in this integration (to know more about this integration, click here)
  3. Return a DM (direct message) via Slack informing the DSN of the project in question to configure in your code.

โš™๏ธ How its works?

As with all other plugins, the 'sentry.plug' and 'sentry.py' files must be placed inside the errbot's /plugins/ directory, as in the structure shown below:

|_ errbot
   |_ plugins
      |_ sentry
         - sentry.plug
         - sentry.py

It has been tested and validated on Slack with the following packages:

errbot slackclient websocket-client
6.1.7 1.3.2 0.54.0

You can use !about to check errbot version and pip list to check installed packages.

Environment Variables

To make this plugin usable for everyone, some environment variables need to be given to errbot.

Sintaxe

You must to pass two parameters in the command to your bot:

  • name of the project to be created within Sentry
  • team created within Sentry

Example: @your_bot sentry create project <your_project_name> for <your_sentry_team_name>

๐Ÿ” Results

If the variables, permissions, project name and team are correct the bot will create our project and respond successfully! โœ…

errbot

errbot

โš ๏ธ Attention: if you inform a repository that does not exist in your GitHub account or its integration between Sentry x Github is not done, the project will be created inside Sentry, but the second step of the plugin will fail. errbot

And finally, if you inform a Sentry team that doesn't exist, the bot will return to the requester informing you of the error and give a list of all teams created within the configured Sentry Organization. errbot

โœ๏ธ Contributing

Any contributions you make are much appreciated.

errbot-plugin-sentry's People

Contributors

victorcfonseca avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.