mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-10-05 00:12:09 +00:00
Version the bot continuously from CHANGELOG.md (the single source of truth for both the version and the staff-readable notes) and surface changes to users in two ways: - A new afterhours-release-notifier Lambda posts a "What's New" message to the shift channel on minor/major releases (patches stay silent). - The bot gains an App Home "About" tab showing what it does, the command list, and the current version's notes. release.yaml runs on Deploy success (not release:published — GITHUB_TOKEN events don't start downstream workflows), checks out the deployed commit, and tags + publishes a GitHub Release + invokes the notifier. It assumes a dedicated, boundary-carrying OIDC role scoped to InvokeFunction on the notifier; the account's cfn role gates role creation on that boundary. The manual Version Bump workflow is retired. A CI guard enforces that a CHANGELOG edit is a clean SemVer bump and that the in-package copy matches.
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
# Slack app manifest — After-Hours Shift Manager
|
|
#
|
|
# Version-controlled source of truth for the Slack app configuration. The app
|
|
# predates this file, so before applying it wholesale via the Slack manifest API,
|
|
# reconcile it against the live app config (App settings → App Manifest) so no
|
|
# existing scope or setting is dropped.
|
|
#
|
|
# The ONLY delta this release introduces is the App Home tab:
|
|
# - settings.event_subscriptions.bot_events: + app_home_opened
|
|
# - features.app_home.home_tab_enabled: true
|
|
# Neither needs a new OAuth scope, so no reinstall is required (see README →
|
|
# "Releases & versioning"). Replace <API_URL> with the SlackBotApiUrl stack output.
|
|
display_information:
|
|
name: After-Hours Shift Manager
|
|
description: Manage after-hours on-call phone duty from Slack.
|
|
|
|
features:
|
|
bot_user:
|
|
display_name: oncall
|
|
always_online: true
|
|
slash_commands:
|
|
- command: /oncall
|
|
url: <API_URL>
|
|
description: Manage after-hours on-call shifts
|
|
usage_hint: "[next|pick|drop|swap|register|pay|rate|roster|help] …"
|
|
should_escape: false
|
|
app_home:
|
|
home_tab_enabled: true
|
|
messages_tab_enabled: true
|
|
messages_tab_read_only_enabled: false
|
|
|
|
oauth_config:
|
|
scopes:
|
|
bot:
|
|
- commands
|
|
- chat:write
|
|
- im:write
|
|
- users:read
|
|
|
|
settings:
|
|
event_subscriptions:
|
|
request_url: <API_URL>
|
|
bot_events:
|
|
- app_home_opened
|
|
interactivity:
|
|
is_enabled: true
|
|
request_url: <API_URL>
|
|
org_deploy_enabled: false
|
|
socket_mode_enabled: false
|