Skip to content

Commit

Permalink
Merge pull request #24 from RodrigoMNardi/feature/command/stage
Browse files Browse the repository at this point in the history
Stage notifications
  • Loading branch information
RodrigoMNardi authored Dec 16, 2023
2 parents c80e9a5 + 4048903 commit 3de1cee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/slack/slash_commands/bamboo_ci/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module Slack
module BambooCi
class Command
COMMANDS = %w[notify subscribe settings].freeze
NOTIFY_OPTS = %w[all errors pass off].freeze
NOTIFY_OPTS = %w[all errors pass stages off].freeze

include SlackBot::Request
include Singleton
Expand Down
6 changes: 4 additions & 2 deletions lib/slack/slash_commands/bamboo_ci/help.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ module Slack
module BambooCi
class Help
TEXT = '
/ci notify <pr> [all | errors | pass | off]
/ci notify <pr> [all | errors | pass | stages | off]
<pr> is the PR number (or * for the off option)
all: All finished runs
errors: Just failed runs
pass: Just successful runs
stages: Just stages updates
off: Disable notifications
Notify on all CI runs (all) or just the CI runs with errors (errors) or only for
successful CI runs (pass)
Expand All @@ -26,11 +27,12 @@ class Help
/ci notify 6 pass
Returns a slack notification whenever the PR6 finishes running and passes all CI tests
/ci subscribe <github_name> [all | errors | pass | off]
/ci subscribe <github_name> [all | errors | pass | stages | off]
github_name is the Github Username
all: All finished runs
errors: Just failed runs
pass: Just successful runs
stages: Just stages updates
off: Disable notifications
Similar to notify, but for all CI runs for that specific Github User
Expand Down

0 comments on commit 3de1cee

Please sign in to comment.