Giter Site home page Giter Site logo

scholtzan / jira-bugzilla-integration Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/jira-bugzilla-integration

0.0 0.0 0.0 1.18 MB

Jira Bugzilla Integration (JBI) - system to sync bugs and issues

License: Mozilla Public License 2.0

Shell 1.40% Python 94.35% CSS 0.60% Makefile 1.40% HTML 1.30% Dockerfile 0.94%

jira-bugzilla-integration's Introduction

Status Sustain Build Docker image Run tests pre-commit

Jira Bugzilla Integration (JBI)

System to sync Bugzilla bugs to Jira issues.

Caveats

  • The system accepts webhook events from Bugzilla
  • Bugs' whiteboard tags are used to determine if they should be synchronized or ignored
  • The events are transformed into Jira issues
  • The system sets the see_also field of the Bugzilla bug with the URL to the Jira issue

Diagram Overview

graph TD
    subgraph bugzilla services
        A[Bugzilla] -.-|bugzilla event| B[(Webhook Queue)]
        B --- C[Webhook Push Service]
    end
    D --> |create/update/delete issue| E[Jira]
    D<-->|read bug| A
    D -->|update see_also| A
    subgraph jira-bugzilla-integration
        C -.->|post /bugzilla_webhook| D{JBI}
        F["config.{ENV}.yaml"] ---| read actions config| D
    end
Loading

Documentation

Usage

How to onboard a new project?

  1. Add an entry for your whiteboard tag (eg. famous-product) in the actions configuration files. See actions documentation)
  2. Open a pull-request with your action configuration changes
  3. Open a ticket to request the appropriate permissions to be given to the bot account (Jira Automation) on the Jira project (example ticket)

Development

  • make start: run the application locally (http://localhost:8000)
  • make test: run the unit tests suites
  • make lint: static analysis of the code base
  • make format: automatically format code to align to linting standards

In order to pass arguments to pytest:

poetry run pytest -vv -k test_bugzilla_list_webhooks

You may consider:

  • Tweaking the application settings in the .env file (See jbi/environment.py for details)
  • Installing a pre-commit hook to lint your changes with pre-commit install

jira-bugzilla-integration's People

Contributors

dependabot[bot] avatar leplatrem avatar bsieber-mozilla avatar grahamalama avatar mossop avatar scholtzan avatar davehunt avatar gijsk avatar cpeterso avatar danielnguyen-mozilla 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.