123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- 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",
- },
- ]
- }
- SUPPORT_COMMAND = {
- "blocks": [
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "Need support? Check out these resources:",
- },
- },
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "• Want help for your particular case? <https://docs.sentry.io/support|File a ticket in Zendesk>. \n• Want to report an issue, request a feature, or get support? <https://github.com/getsentry/sentry/issues/new/choose|File a GitHub issue>. \n• Have feedback? Email ecosystem-feedback@sentry.io.",
- },
- },
- ]
- }
- DOCS_COMMAND = {
- "blocks": [
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "Want to view documentation? Check out these resources:",
- },
- },
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "• <https://docs.sentry.io/organization/integrations/|General Sentry integration docs> \n• <https://docs.sentry.io/organization/integrations/notification-incidents/slack/|Sentry Slack integration docs> \n• <https://sentry.slack.com/apps/A011MFBJEUU-sentry|Sentry Slack app>",
- },
- },
- ]
- }
|