Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a hook for Slack/Teams status when starting/stopping project #487

Open
kopytjuk opened this issue Nov 14, 2022 · 3 comments
Open

Add a hook for Slack/Teams status when starting/stopping project #487

kopytjuk opened this issue Nov 14, 2022 · 3 comments

Comments

@kopytjuk
Copy link

kopytjuk commented Nov 14, 2022

Imagine you stop your project with

watson stop

And your status indication in Slack/Teams changes to "afk" or something similar.

A way to bind a hook to the currently active frame for a shell script or something would be helpful for such integrations...

Feel free to close if it is redundant, not in scope of Watson

@jmaupetit
Copy link
Member

It would be fun to add as a plugin!

@kopytjuk
Copy link
Author

I will leave some helpful information on Slack (for me or s.o. else who wants to work on that) ...

Slack allows writing user's status, see here. The required token can be retrieved in the way described here.

We have two options:

  1. watson sends HTTP requests to slack when the user starts or stops work. This way requires the user set it's credentials & token once in watson's config (or some ENV var).
  2. Periodically checking .config/watson/state and updating Slack/Teams status accordingly - not sure if this is in scope of this repository.

@hinricht
Copy link

hinricht commented Dec 7, 2022

A generic way to call any script as a hook for watson start/stop would be great as a start, because there's a gazillion use cases for such hooks (Slack/Teams included).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants