mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
feat: add completed event as webhook event (#6968)
Now feature completed event can be used with webhook.
This commit is contained in:
parent
95ebe25ada
commit
5c61667282
@ -59,6 +59,7 @@ import {
|
||||
CHANGE_REQUEST_SCHEDULED_APPLICATION_SUCCESS,
|
||||
CHANGE_REQUEST_SCHEDULED_APPLICATION_FAILURE,
|
||||
CHANGE_REQUEST_SCHEDULE_SUSPENDED,
|
||||
FEATURE_COMPLETED,
|
||||
} from '../types';
|
||||
|
||||
interface IEventData {
|
||||
@ -200,6 +201,10 @@ const EVENT_MAP: Record<string, IEventData> = {
|
||||
action: '*{{user}}* updated *{{feature}}* metadata in project *{{project}}*',
|
||||
path: '/projects/{{event.project}}/features/{{event.featureName}}',
|
||||
},
|
||||
[FEATURE_COMPLETED]: {
|
||||
action: '*{{feature}}* was marked as completed in project *{{project}}*',
|
||||
path: '/projects/{{event.project}}/features/{{event.featureName}}',
|
||||
},
|
||||
[FEATURE_POTENTIALLY_STALE_ON]: {
|
||||
action: '*{{feature}}* was marked as potentially stale in project *{{project}}*',
|
||||
path: '/projects/{{event.project}}/features/{{event.featureName}}',
|
||||
|
@ -29,6 +29,7 @@ import {
|
||||
CHANGE_REQUEST_SCHEDULED_APPLICATION_FAILURE,
|
||||
CHANGE_REQUEST_SCHEDULED,
|
||||
CHANGE_REQUEST_SCHEDULE_SUSPENDED,
|
||||
FEATURE_COMPLETED,
|
||||
} from '../types/events';
|
||||
import type { IAddonDefinition } from '../types/model';
|
||||
|
||||
@ -103,6 +104,7 @@ const webhookDefinition: IAddonDefinition = {
|
||||
FEATURE_REVIVED,
|
||||
FEATURE_STALE_ON,
|
||||
FEATURE_STALE_OFF,
|
||||
FEATURE_COMPLETED,
|
||||
FEATURE_ENVIRONMENT_ENABLED,
|
||||
FEATURE_ENVIRONMENT_DISABLED,
|
||||
FEATURE_STRATEGY_REMOVE,
|
||||
|
@ -26,6 +26,7 @@ You can choose to trigger updates for the following events (we might add more ev
|
||||
- feature-strategy-remove
|
||||
- feature-stale-on
|
||||
- feature-stale-off
|
||||
- feature-completed
|
||||
- feature-environment-enabled
|
||||
- feature-environment-disabled
|
||||
- feature-variants-updated
|
||||
|
Loading…
Reference in New Issue
Block a user