refactor: Specify only the arguments for trigger definitions

This commit is contained in:
Faruk AYDIN
2022-10-31 18:12:12 +01:00
parent 571bf6bfa7
commit b3f216209a
21 changed files with 691 additions and 861 deletions

View File

@@ -6,37 +6,23 @@ export default defineTrigger({
key: 'newPullRequests',
pollInterval: 15,
description: 'Triggers when a new pull request is created',
substeps: [
arguments: [
{
key: 'chooseConnection',
name: 'Choose connection',
},
{
key: 'chooseTrigger',
name: 'Set up a trigger',
arguments: [
{
label: 'Repo',
key: 'repo',
type: 'dropdown' as const,
required: true,
variables: false,
source: {
type: 'query',
name: 'getData',
arguments: [
{
name: 'key',
value: 'listRepos',
},
],
label: 'Repo',
key: 'repo',
type: 'dropdown' as const,
required: true,
variables: false,
source: {
type: 'query',
name: 'getData',
arguments: [
{
name: 'key',
value: 'listRepos',
},
},
],
},
{
key: 'testStep',
name: 'Test trigger',
],
},
},
],