Giter Site home page Giter Site logo

probot-ooo's Introduction

image

probot-ooo's People

Contributors

swinton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

probot-ooo's Issues

Check if comment was updated (ooo changed)

In this file, the bot checks for the original comment to still exist. I'd love this to also check the dates in that comment in case the OOO was extended (or reduced).

Right now I would need to completely delete my original comment since it checks off the Comment's ID. I may want to keep my comment, but extend my date instead.

Unable to turn off oobot

I'm stuck in a situation where I tested the bot first (away till Dec 1st) and then set it to the right away date (which was just a few days). But there seems to be no way to turn off ooobot. Even if I set /ooo away today until tomorrow, I was hoping it would clear out by then but it does not. This is related to #7.

How does one turn off an ooo that is already in place?

Detailed documentation on initialization, configuration, and early termination

The bot seems simple enough to use, but I am still unsure how to set OOO time. For example, if I comment with "/ooo 9/15 until 10/2", does the range of days include 10/2, or does it only go through 10/1? Can I substitute "until" with "through" or "to"? What other keywords are supported? Will an empty call to "/ooo" cancel the autoresponder?

Smart defaults for keywords like "tomorrow"

Currently we expect a start and end date for OOO events. It would be great to have smart defaults for certain keywords, like tomorrow, so you could simply write:

/ooo tomorrow

Honor single-day OOOs without needing a range

I would be nice to honor single-day OOOs without needing to specify a range.

For example, this works:

/ooo from 6/19 to 6/19

But this does not:

/ooo on 6/19

image


I used the same sherlockjs parser in my Services spreadsheet-updating Action (internal to GitHub) and, when parsing such a command, it does parse out a startDate but not an endDate. So, basically, if you ended up in that situation, I would suggest filling in the default value of endDate as being at "23:59:59.999Z" on the same UTC date as startDate.

Handle multiple OOO people in one comment

Hi again ๐Ÿ‘‹ If someone pings multiple people who are OOO in the same comment, right now two comments are posted:

image

It'd be โœจ if there was just one comment, and it changed to be something like:

Letting you know, @userone, @usertwo & @userthree are all out of office.

Name Return date
@userone January 2nd
@usertwo Febraury 16th
@userthree March 2nd

Respond with a reason for OOO

Would be cool to add a reason to the ooo command, e.g. /ooo 1/1 until 1/31 for :palm_tree: vacation.

So the bot would respond with:

`:wave: Hey @${context.payload.comment.user.login}...\n\nLetting you know, \`@${ooo.sender}\` is [currently OOO until ${moment(ooo.endDate).format("dddd, MMMM Do YYYY")}](${ooo.commentHtmlUrl}) for ${ooo.reason}. :heart:`

Rendered:

๐Ÿ‘‹ Hey @stoe

Letting you know, @swinton is currently OOO until Wednesday, January 31st 2018 for ๐ŸŒด vacation. โค๏ธ

:wave: Hey @stoe

Letting you know, `@swinton` is [currently OOO until Wednesday, January 31st 2018](#) for :palm_tree: vacation. :heart:

Bot will respond to OOO person, telling them they're OOO

๐Ÿ‘‹

I noticed that if someone who is OOO @-mentions themselves, the bot will still pick it up and let them know resulting in a message:

๐Ÿ‘‹ Hey @JasonEtco...

Letting you know, @JasonEtco is currently OOO until Saturday, March 24th 2018. โค๏ธ

This is obviously a pretty specific edge-case, but it'd be โœจ if there was a check for the comment author === the OOO person.

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.