Giter Club home page Giter Club logo

ws-issue-bot's Introduction

ws-issue-bot

Description

ws-issue-bot is a Python script using Flask and python-gitlab to set scoped labels on Gitlab Issues. Target project for this bot is https://gitlab.com/wireshark/wireshark

This is done by listing for Issue and Merge Requests Webhooks.

When there is a new issue and the user is a member of group Developer or Maintainer or Owner the label ws-status::confirmed is set. Otherwise when there is no ws-status:: label the label ws-status::unconfirmed is set.

When there is a new Merge Request which mentions an issue, the bot set label ws-status::in-progress for this issue.

When a issue is closed and it was closed by a MR label ws-status::fixed is set. Otherwise label ws-status::closed is set.

The label ws-status::waiting-for-response can't be automated. Therefore it has to be set manually.

How to run it

  • An API token with API permissions for the project is needed (would make sense to use a dedicated user for this).
  • A platform running a WSGI/Reverse proxy stack (for example nginx and gunicorn or AWS Elastic Beanstalk).
  • The environment variables GITLAB_HOOK_SECRET and GITLAB_API_TOKEN have to be set to run the bot.
  • Configured Issues and Merge request event Webhooks in the project settings menu. A secret token must be set.

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.