Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions integrations/canny/integration.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import { z, IntegrationDefinition } from '@botpress/sdk'

export default new IntegrationDefinition({
name: 'canny',
version: '0.1.0',
version: '0.2.0',
title: 'Canny',
description: 'Connect your Botpress bot to Canny for feature request management and customer feedback collection',
readme: 'hub.md',
icon: 'icon.svg',
configuration: {
schema: z.object({
apiKey: z.string().title('API Key').describe('Your Canny API key'),
defaultAuthorId: z.string().title('Default Author Id').describe('Default author Id for system messages'),
}),
},
channels: {
Expand Down
4 changes: 1 addition & 3 deletions integrations/canny/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export default new bp.Integration({
apiKey: ctx.configuration.apiKey,
})

if (!ctx.configuration.defaultAuthorId) {
throw new Error('Default author ID is required in integration configuration.')
}
// Note: We use a default Botpress user for comments/posts when no authorId is provided

const boardsResult = await client.listBoards()

Expand Down
2 changes: 1 addition & 1 deletion integrations/linear/integration.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { actions, channels, events, configuration, configurations, user, states,

export default new IntegrationDefinition({
name: 'linear',
version: '1.1.2',
version: '1.1.3',
title: 'Linear',
description:
'Manage your projects autonomously. Have your bot participate in discussions, manage issues and teams, and track progress.',
Expand Down
2 changes: 1 addition & 1 deletion integrations/linear/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const handler: bp.IntegrationProps['handler'] = async ({ req, ctx, client
}

// ============ EVENTS ==============
if (linearEvent.type === 'issue' && linearEvent.action === 'create') {
if (linearEvent.type === 'issue' && (linearEvent.action === 'create' || linearEvent.action === 'restore')) {
await fireIssueCreated({ linearEvent, client, ctx })
return
}
Expand Down
6 changes: 3 additions & 3 deletions integrations/linear/src/misc/linear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import queryString from 'query-string'
import * as bp from '.botpress'

type BaseEvent = {
action: 'create' | 'update' | 'remove'
action: 'create' | 'update' | 'remove' | 'restore'
type: string
webhookTimestamp: number
data: {
Expand All @@ -27,7 +27,7 @@ export type LinearIssueEvent = {
title: string
updatedAt: string
createdAt: string
description: string
description: string | null
priority: number
labels: {
name: string
Expand All @@ -44,7 +44,7 @@ export type LinearIssueEvent = {
state: {
name: string
}
project: {
project?: {
id: string
}
}
Expand Down
Loading