GithubHelp home page GithubHelp logo

triage's Introduction

Scripts for triaging and prioritising Rust issues

Everything interesting is in src. You'll need to copy config.json.orig to config.json and fill out all the values. Run using run.sh in src (you'll need to setup by running init.sh in staging first). To run on a server, first use run.sh, then copy everything in staging to the server, run init.sh, then nohup nodejs triage.js &. I think node.js is the only prerequisite.

You'll need to setup your GitHub repo to send a webhook on issue comments and issues (which covers new issues and [de-]labeling).

API

/hook receive GitHub web hook. We record priority changes made by changing labels (any label starting with P- or I-nominated). We also allow changing labels in a comment using, for example, triage: P-high. The comment is then also recorded. Users allowed to do this are listed in config.json

/data dump currently collected data as JSON.

/mail_digest trigger the digest email and empty the current data state.

Source overview

Most of the work is done in triage.js. call.js has some basic helper functions for making GitHub API calls. digest.js produces the digest email text (as html).

The current state of the program is pretty much all in the data global. This is regularly stored to disk (in data.json) so we can recover from a crash.

We record all priority changes, either by label changes or by using triage in a comment (the latter is preferred since the comment can add context). Sending an email sends all recorded changes to the email address listed in emails.json. It also saves a copy in the digests folder. It then resets the current state.

triage's People

Contributors

nrc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

triage's Issues

Detecting milestone changes

Annoyingly there is no GH hook for changing the milestone on an issue, so this is not recorded for the triage digest email. Perhaps we should keep track of issues on a milestone from week to week so we can report changes.

digest preview

add API to get a preview of the digest email without sending the email or resetting the data.

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.