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

Automatically schedule an incident retro #442

Merged
merged 6 commits into from
Apr 5, 2024
Merged

Conversation

sylviamclaughlin
Copy link
Contributor

Summary | Résumé

This PR automatically schedules an incident retro when the /sre incident schedule command is ran in an incident channel. The code looks through all team member's calenders (except the security team group) and tries to schedule an event based on the following rules:

  • it starts looking 3 days from now
  • ignores weekends
  • schedules the event for 30 minutes
  • looks for the first available time for the next 2 months.

Screenshot 2024-04-05 at 10 48 36 AM

When a time is available, the SRE bot then schedules the event, sends a notification email and displays a message to the user with a button to view the event.

Screenshot 2024-04-05 at 10 49 15 AM

Screenshot 2024-04-05 at 10 51 07 AM Screenshot 2024-04-05 at 10 50 09 AM

@sylviamclaughlin sylviamclaughlin self-assigned this Apr 5, 2024
@sylviamclaughlin sylviamclaughlin requested a review from a team April 5, 2024 17:52
Copy link

github-actions bot commented Apr 5, 2024

GitHub Action status on 3f3f36c generated by comment-failure-action

Lint, format and test code

job url
null https://github.com/cds-snc/sre-bot/actions/runs/8573774608/job/23501299247

Build containers CI

No jobs failed 👍

@sylviamclaughlin sylviamclaughlin merged commit 3a7ac0c into main Apr 5, 2024
7 checks passed
@sylviamclaughlin sylviamclaughlin deleted the feat/schedule_retro branch April 5, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants