123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- MISSING_COMMAND = {
- "blocks": [
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "Here are the commands you can use. Commands not working? Re-install the app!",
- },
- },
- {"type": "section", "text": {"type": "mrkdwn", "text": "*Direct Message Commands:*"}},
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "`/sentry help`: View this list of commands.\n`/sentry link`: Link your Slack identity to your Sentry account to receive notifications. You'll also be able to perform actions in Sentry through Slack.\n`/sentry unlink`: Unlink your Slack identity from your Sentry account.",
- },
- },
- {"type": "section", "text": {"type": "mrkdwn", "text": "*Channel Commands:*"}},
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "`/sentry link team`: Get your Sentry team's issue alert notifications in the channel this command is typed in.\n`/sentry unlink team`: Unlink a team from the channel this command is typed in.",
- },
- },
- {"type": "section", "text": {"type": "mrkdwn", "text": "*Contact:*"}},
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "Let us know if you have feedback: ecosystem-feedback@sentry.io",
- },
- },
- {"type": "divider"},
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "Just want to learn more about Sentry? Check out our <https://docs.sentry.io/product/integrations/notification-incidents/slack/|documentation>.",
- },
- },
- ]
- }
- INVALID_COMMAND = {
- "blocks": [
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "Unknown command: `invalid command`",
- },
- },
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "Here are the commands you can use. Commands not working? Re-install the app!",
- },
- },
- {
- "type": "section",
- "text": {"type": "mrkdwn", "text": "*Direct Message Commands:*"},
- },
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "`/sentry help`: View this list of commands.\n`/sentry link`: Link your Slack identity to your Sentry account to receive notifications. You'll also be able to perform actions in Sentry through Slack.\n`/sentry unlink`: Unlink your Slack identity from your Sentry account.",
- },
- },
- {
- "type": "section",
- "text": {"type": "mrkdwn", "text": "*Channel Commands:*"},
- },
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "`/sentry link team`: Get your Sentry team's issue alert notifications in the channel this command is typed in.\n`/sentry unlink team`: Unlink a team from the channel this command is typed in.",
- },
- },
- {"type": "section", "text": {"type": "mrkdwn", "text": "*Contact:*"}},
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "Let us know if you have feedback: ecosystem-feedback@sentry.io",
- },
- },
- {"type": "divider"},
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "Just want to learn more about Sentry? Check out our <https://docs.sentry.io/product/integrations/notification-incidents/slack/|documentation>.",
- },
- },
- ]
- }
- HELP_COMMAND = {
- "blocks": [
- {
- "text": {
- "text": "Here are the commands you can use. Commands not "
- "working? Re-install the app!",
- "type": "mrkdwn",
- },
- "type": "section",
- },
- {
- "text": {"text": "*Direct Message Commands:*", "type": "mrkdwn"},
- "type": "section",
- },
- {
- "text": {
- "text": "`/sentry help`: View this list of commands.\n"
- "`/sentry link`: Link your Slack identity to "
- "your Sentry account to receive notifications. "
- "You'll also be able to perform actions in "
- "Sentry through Slack.\n"
- "`/sentry unlink`: Unlink your Slack identity "
- "from your Sentry account.",
- "type": "mrkdwn",
- },
- "type": "section",
- },
- {
- "text": {"text": "*Channel Commands:*", "type": "mrkdwn"},
- "type": "section",
- },
- {
- "text": {
- "text": "`/sentry link team`: Get your Sentry team's "
- "issue alert notifications in the channel this "
- "command is typed in.\n"
- "`/sentry unlink team`: Unlink a team from the "
- "channel this command is typed in.",
- "type": "mrkdwn",
- },
- "type": "section",
- },
- {"text": {"text": "*Contact:*", "type": "mrkdwn"}, "type": "section"},
- {
- "text": {
- "text": "Let us know if you have feedback: " "ecosystem-feedback@sentry.io",
- "type": "mrkdwn",
- },
- "type": "section",
- },
- {"type": "divider"},
- {
- "text": {
- "text": "Just want to learn more about Sentry? Check out "
- "our "
- "<https://docs.sentry.io/product/integrations/notification-incidents/slack/|documentation>.",
- "type": "mrkdwn",
- },
- "type": "section",
- },
- ]
- }
|