Code Monkey home page Code Monkey logo

linear-reminder's Introduction

๐Ÿค–
linear-reminder

A webhook server for automating Linear reminders written in Rust and served with Shuttle.


linear-reminder is a simple demo webhook server written using Rocket for automating a specific workflow of reminders in Linear.

The workflow

Suppose you have an intermediate status that your devs tickets go to. For example, maybe you have a Merged state tickets go to as soon as their associated pull requests merge. However, Merged is not the final desired state. Perhaps these tickets need to move from Merged to either QA Ready or Done.

stateDiagram-v2
    qa: QA Ready
    Merged --> Done
    Merged --> qa
    qa --> Done

But, it's easy to forget that, so you want some way to remind people to move the ticket along by posting a comment on tickets which are sitting in Merged for some amount of time.

linear-reminder is a webhook server to accomplish that.

Configuration

This server can be configured using standard Rocket configuration. Specifically, we add the following configuration options.

# Rocket.toml
[default]
# The amount of time to wait between an issue hiting the `target_status` and a reminder being sent.
# This is provided in "humantime" format (e.g, 15days 3hr 3min)
time_to_remind = '30min'

[default.linear]
# Your Linear personal api Key
api_key = 'insert-here'
# Your Linear webhook signing key
signing_key = 'insert-here'
# The target status to send reminders for
target_status = 'Merged'
# The content of the comment to send as the reminder.
# Must be a single line.
message = 'If this issue is QA-able, please write instructions and move to `QA Ready`. If not, mark it as `Done`. Thanks!\n\n*This is an automated message.*'

These can be overridden using Shuttle Secrets when deployed.

# Secrets.toml
'ROCKET_LINEAR.API_KEY' = 'lin_api_fillinyourkey'
'ROCKET_LINEAR.SIGNING_KEY' = 'lin_wh_fillinyourotherkey'
'ROCKET_LINEAR.TARGET_STATUS' = 'Limbo'
'ROCKET_LINEAR.MESSAGE' = 'Get out of Limbo.'
'ROCKET_TIME_TO_REMIND' = '10min'

linear-reminder's People

Contributors

lukehsiao avatar dependabot[bot] avatar

Stargazers

Shawn Charles avatar

Watchers

 avatar  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.