fastlane / issue-bot

This bot is responsible for commenting on GitHub issues that haven't had any activity

Home Page:https://fastlane.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find way to "submit" issues, PRs and comments directly to #action in Slack

janpio opened this issue · comments

Right now one has to manually copy/paste an issue, PR or comment that requires some input to the #action channel in Slack. It would be nice if one could just include #action at the end of a message to automatically trigger this. The bot could then post a link and the text of the message.

Discussed in Slack, problem would be to save the "I posted this to Slack" state for the bot. Otherwise every time it runs it will post the message again.

Solutions could be:

  1. Bot adds a label when done. Problem is that labels are per issue/PR and not comment.
  2. Add state to the bot so he knows which comments he already posted. Problem: Adds complexity and requires one definitive bot installation.

:/

  1. Remove the #action from the message (very easy to implement)
  2. Replace it with #action-sent (easy to implement)

I'm thinking of replacing this with something clearer, as people would get confused by it, something like #send-to-slack, what do you say?

I don't think editing a comment from a user is a great idea tbh

Option #3 from @revolter, combined with a whitelist of users that are part of some fastlane team. Only makes sense to be used by people in Slack anyway. Additionally, wait at least 5 min to make sure user doesn't want to edit comment any more.

Well, this should be only used by collaborators, not any user. Also, #50 already edits comments 😄

Create a bot or webhook integration for Slack. Monitor your platform (e.g., GitHub) for new issues, PRs, or comments. When a message with "#action" is detected, have the bot send a notification with the link and text to the #action channel in Slack. TellTims Survey

Create a bot or webhook integration for Slack. Monitor your platform (e.g., GitHub) for new issues, PRs, or comments. When a message with "#action" is detected, have the bot send a notification with the link and text to the #action channel in Slack.

Bot reply ☝️