Coder Social home page Coder Social logo

sprintbot's Introduction

Sprint Bot

Build Status Coverage Status

Demo Image

Features

  • For all open tasks ask the status
  • If no task is present as to create one
  • Resolve as done on reply as Yes
  • Start progress when reply is In Progress or In progress
  • Ask status only for start date less than or equal to current date
  • Recieve digest at a specified time
  • Very easy to add custom handlers for answers

Setup

Create config.properties in src/main/resources.

username=jirausername
password=jirapassword
slackToken=slacktoken
endpoint=https://jira.corp.domain.com

Add your users in src/main/resources/users.xml.

Running

Create the jar using mvn package.

Run the jar file in /target/.

Adding new answer handlers

Answer handlers are interfaced using AnswerActionHandler.

The lifecycle is that a question is first asked to the user and then it is polled for an answer by the Question class.

CommonHandlersFactory has a getCommonHandlers method which has all the handlers used by a Question.

You can add your handler in that method.

public static List<AnswerActionHandler> getCommonHandlers(Jira jira) {
       if(handlersMap.get(jira) == null) {
           final AnswerActionHandler answerActionHandler = new ResolveOnYes(jira);
           handlersMap.put(jira, new ArrayList<AnswerActionHandler>() {{
               add(answerActionHandler);
           }});
       }
       return handlersMap.get(jira);
   }

Create a new class similar to ResolveOnYes interfaced using ActionHandler and add it using the add method on to the list.

sprintbot's People

Contributors

prathik avatar prathikraj avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

otomazeli

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.