Skip to content

Commit

Permalink
fix: rm duplicated events + sort events
Browse files Browse the repository at this point in the history
  • Loading branch information
Looskie committed Sep 28, 2023
1 parent 1ce0de7 commit b650962
Showing 1 changed file with 20 additions and 28 deletions.
48 changes: 20 additions & 28 deletions src/util/webhooks.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
export const POSSIBLE_EVENTS = {
Channels: [
{
id: 'channel.client.connected',
name: 'Client Connected',
id: 'channel.created',
name: 'Created',
},
{
id: 'channel.client.disconnected',
name: 'Client Disconnected',
id: 'channel.client.connected',
name: 'Client Connected',
},
{
id: 'channel.created',
name: 'Created',
id: 'channel.updated',
name: 'Updated',
},
{
id: 'channel.deleted',
name: 'Deleted',
},
{
id: 'channel.updated',
name: 'Updated',
id: 'channel.client.disconnected',
name: 'Client Disconnected',
},
],
Ignite: [
Expand All @@ -34,22 +34,22 @@ export const POSSIBLE_EVENTS = {
id: 'ignite.deployment.deleted',
name: 'Deployment Deleted',
},
{
id: 'ignite.deployment.build.started',
name: 'Build Started',
},
{
id: 'ignite.deployment.build.completed',
name: 'Build Completed',
},
{
id: 'ignite.deployment.build.created',
name: 'Build Created',
},
{
id: 'ignite.deployment.build.started',
name: 'Build Started',
},
{
id: 'ignite.deployment.build.updated',
name: 'Build Updated',
},
{
id: 'ignite.deployment.build.completed',
name: 'Build Completed',
},
{
id: 'ignite.deployment.build.failed',
name: 'Build Failed',
Expand Down Expand Up @@ -116,6 +116,10 @@ export const POSSIBLE_EVENTS = {
},
],
Project: [
{
id: 'project.updated',
name: 'Updated',
},
{
id: 'project.member.created',
name: 'Member Created',
Expand All @@ -128,18 +132,6 @@ export const POSSIBLE_EVENTS = {
id: 'project.member.deleted',
name: 'Member Deleted',
},
{
id: 'project.members.add',
name: 'Member Added',
},
{
id: 'project.members.remove',
name: 'Member Removed',
},
{
id: 'project.updated',
name: 'Updated',
},
{
id: 'project.tokens.create',
name: 'Token Created',
Expand Down

0 comments on commit b650962

Please sign in to comment.