Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | 64x 64x 64x | import { FEATURE_CREATED, FEATURE_UPDATED, FEATURE_ARCHIVED, FEATURE_REVIVED, FEATURE_STALE_ON, FEATURE_STALE_OFF, FEATURE_ENVIRONMENT_ENABLED, FEATURE_ENVIRONMENT_DISABLED, FEATURE_STRATEGY_REMOVE, FEATURE_STRATEGY_UPDATE, FEATURE_STRATEGY_ADD, FEATURE_METADATA_UPDATED, FEATURE_PROJECT_CHANGE, FEATURE_VARIANTS_UPDATED, } from '../types/events'; import { IAddonDefinition } from '../types/model'; const slackDefinition: IAddonDefinition = { name: 'slack', displayName: 'Slack', description: 'Allows Unleash to post updates to Slack.', documentationUrl: 'https://docs.getunleash.io/docs/addons/slack', parameters: [ { name: 'url', displayName: 'Slack webhook URL', type: 'url', required: true, sensitive: true, }, { name: 'username', displayName: 'Username', placeholder: 'Unleash', description: 'The username to use when posting messages to slack. Defaults to "Unleash".', type: 'text', required: false, sensitive: false, }, { name: 'emojiIcon', displayName: 'Emoji Icon', placeholder: ':unleash:', description: 'The emoji_icon to use when posting messages to slack. Defaults to ":unleash:".', type: 'text', required: false, sensitive: false, }, { name: 'defaultChannel', displayName: 'Default channel', description: 'Default channel to post updates to if not specified in the slack-tag', type: 'text', required: true, sensitive: false, }, ], events: [ FEATURE_CREATED, FEATURE_UPDATED, FEATURE_ARCHIVED, FEATURE_REVIVED, FEATURE_STALE_ON, FEATURE_STALE_OFF, FEATURE_ENVIRONMENT_ENABLED, FEATURE_ENVIRONMENT_DISABLED, FEATURE_STRATEGY_REMOVE, FEATURE_STRATEGY_UPDATE, FEATURE_STRATEGY_ADD, FEATURE_METADATA_UPDATED, FEATURE_VARIANTS_UPDATED, FEATURE_PROJECT_CHANGE, ], tagTypes: [ { name: 'slack', description: 'Slack tag used by the slack-addon to specify the slack channel.', icon: 'S', }, ], }; export default slackDefinition; |