This repository implements an automated IssueOps workflow using GitHub Actions and a Ruby script to handle a custom /cutover <SNOW-ID> command in issue comments.
- β
Listens for GitHub issue comments starting with
/cutover. - π§ͺ Validates the command format (expects
/cutover <SNOW-ID>). - π Automatically creates a GitHub label using the SNOW-ID and a specific color (
#002b36). - π Applies the label to the issue that received the comment.
- β If the format is invalid (e.g. just
/cutover), it reacts with β and replies with usage guidance.
-
Go to any GitHub issue.
-
Post a comment in the format:
/cutover INC1234567
-
The workflow will:
- Create a label named
INC1234567(with dark blue color). - Attach it to the issue.
If the command is invalid, like:
/cutover
- Create a label named
Then:
- A β reaction will be added to the comment.
- A response will be posted with the correct usage format.
.github/
βββ scripts/
β βββ process_cutover_command.rb # Ruby script for command processing
βββ workflows/
βββ cutover.yml # GitHub Actions workflow