dev-schedule-bot
This is simple slack bot that posts a message with the order of developers who will be on duty in the next week. It uses GitHub Gist to store the list of developers and their schedules, and it posts the message to a Slack channel using a webhook
- Stars
- 0
- Forks
- 0
- Open issues
- 0
This is simple slack bot that posts a message with the order of developers who will be on duty in the next week. It uses GitHub Gist to store the list of developers and their schedules, and it posts the message to a Slack channel using a webhook. It is designed to run weekly, and it can be configured with environment variables for the GitHub token, Gist ID, Slack webhook URL, and the name of the Gist file.
Setup
- Create a GitHub Gist with the list of developers in JSON format example:
["dev1", "dev2", "dev3", "dev4", "dev5"]
- Create a Slack webhook URL for the channel where you want to post the message
- Create a Repository secrets in the Github with the following variables:
AUTH_TOKEN=your_github_token
GIST_ID=your_gist_id
SLACK_WEBHOOK_URL=your_slack_webhook_url
GIST_FILE_NAME=your_gist_file_name (default: developers.json)
Usage
The bot will fetch the list of developers from the Gist, rotate the order, format the message, and post it to the Slack channel. It will also save the new order back to the Gist.