-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated commit: Latest generated changes from schedule action (#23)
Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
a4f433a
commit 0eb687d
Showing
33 changed files
with
1,200 additions
and
9 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
src/connectors/atlassian.bitbucket/functions/create_issue.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import { DefineConnector } from "../../../deps.ts"; | ||
import { Schema } from "../../../deps.ts"; | ||
|
||
export default DefineConnector({ | ||
callback_id: "A05Q8KLHEHJ#/functions/create_issue", | ||
title: "Create an issue", | ||
description: "Create a bitbucket cloud issue", | ||
input_parameters: { | ||
properties: { | ||
workspace: { | ||
type: Schema.types.string, | ||
description: "Enter bitbucket workspace", | ||
title: "Bitbucket workspace", | ||
}, | ||
repo_slug: { | ||
type: Schema.types.string, | ||
description: "Enter repository name", | ||
title: "Repository", | ||
}, | ||
title: { | ||
type: Schema.types.string, | ||
description: "Title of the issue", | ||
title: "Title", | ||
}, | ||
description: { | ||
type: Schema.types.string, | ||
description: "Description of the issue", | ||
title: "Description", | ||
}, | ||
kind: { | ||
type: Schema.types.string, | ||
description: "Issue kind", | ||
title: "Kind", | ||
enum: ["bug", "enhancement", "proposal", "task"], | ||
}, | ||
priority: { | ||
type: Schema.types.string, | ||
description: "Priority of the issue", | ||
title: "Priority", | ||
enum: ["trivial", "minior", "major", "critical", "blocker"], | ||
}, | ||
assignee_uuid: { | ||
type: Schema.types.string, | ||
description: "Select an option...", | ||
title: "Assignee", | ||
}, | ||
bitbucket_access_token: { | ||
type: Schema.slack.types.oauth2, | ||
title: "bitbucket access token", | ||
}, | ||
}, | ||
required: [ | ||
"workspace", | ||
"repo_slug", | ||
"title", | ||
"description", | ||
"assignee_uuid", | ||
"bitbucket_access_token", | ||
], | ||
}, | ||
output_parameters: { | ||
properties: { | ||
issue_id: { | ||
type: Schema.types.string, | ||
description: "Id of the issue", | ||
title: "Issue ID", | ||
}, | ||
title: { | ||
type: Schema.types.string, | ||
description: "Title of the issue", | ||
title: "Title", | ||
}, | ||
kind: { | ||
type: Schema.types.string, | ||
description: "Kind of the issue", | ||
title: "Kind", | ||
}, | ||
priority: { | ||
type: Schema.types.string, | ||
description: "Priority of the issue", | ||
title: "Priority", | ||
}, | ||
}, | ||
required: [], | ||
}, | ||
}); |
51 changes: 51 additions & 0 deletions
51
src/connectors/atlassian.bitbucket/functions/create_issue_test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import { assertEquals, assertExists } from "../../../dev_deps.ts"; | ||
import { DefineWorkflow } from "../../../dev_deps.ts"; | ||
import CreateIssue from "./create_issue.ts"; | ||
|
||
Deno.test("CreateIssue can be used as a Slack function in a workflow step", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_CreateIssue_slack_function", | ||
title: "Test CreateIssue", | ||
description: "This is a generated test to test CreateIssue", | ||
}); | ||
testWorkflow.addStep(CreateIssue, { | ||
workspace: "test", | ||
repo_slug: "test", | ||
title: "test", | ||
description: "test", | ||
assignee_uuid: "test", | ||
bitbucket_access_token: "test", | ||
}); | ||
const actual = testWorkflow.steps[0].export(); | ||
|
||
assertEquals(actual.function_id, "A05Q8KLHEHJ#/functions/create_issue"); | ||
assertEquals(actual.inputs, { | ||
workspace: "test", | ||
repo_slug: "test", | ||
title: "test", | ||
description: "test", | ||
assignee_uuid: "test", | ||
bitbucket_access_token: "test", | ||
}); | ||
}); | ||
|
||
Deno.test("All outputs of Slack function CreateIssue should exist", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_CreateIssue_slack_function", | ||
title: "Test CreateIssue", | ||
description: "This is a generated test to test CreateIssue", | ||
}); | ||
const step = testWorkflow.addStep(CreateIssue, { | ||
workspace: "test", | ||
repo_slug: "test", | ||
title: "test", | ||
description: "test", | ||
assignee_uuid: "test", | ||
bitbucket_access_token: "test", | ||
}); | ||
assertExists(step.outputs.issue_id); | ||
assertExists(step.outputs.title); | ||
assertExists(step.outputs.kind); | ||
assertExists(step.outputs.priority); | ||
}); |
66 changes: 66 additions & 0 deletions
66
src/connectors/atlassian.bitbucket/functions/merge_pull_request.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import { DefineConnector } from "../../../deps.ts"; | ||
import { Schema } from "../../../deps.ts"; | ||
|
||
export default DefineConnector({ | ||
callback_id: "A05Q8KLHEHJ#/functions/merge_pull_request", | ||
title: "Merge pull request", | ||
input_parameters: { | ||
properties: { | ||
workspace: { | ||
type: Schema.types.string, | ||
description: "Enter Bitbucket workspace", | ||
title: "Bitbucket workspace", | ||
}, | ||
repo_slug: { | ||
type: Schema.types.string, | ||
description: "Enter repository name", | ||
title: "Repository", | ||
}, | ||
pull_request_id: { | ||
type: Schema.types.string, | ||
description: "Enter a pull request ID", | ||
title: "Pull request ID", | ||
}, | ||
message: { | ||
type: Schema.types.string, | ||
description: "Enter a message", | ||
title: "Message", | ||
}, | ||
close_source_branch: { | ||
type: Schema.types.boolean, | ||
description: "Enter Close Source Branch", | ||
title: "Close Source Branch", | ||
}, | ||
merge_strategy: { | ||
type: Schema.types.string, | ||
description: "Enter merge strategy", | ||
title: "Merge strategy", | ||
enum: ["merge_commit", "squash", "fast_forward"], | ||
}, | ||
bitbucket_access_token: { | ||
type: Schema.slack.types.oauth2, | ||
title: "bitbucket access token", | ||
}, | ||
}, | ||
required: [ | ||
"workspace", | ||
"repo_slug", | ||
"pull_request_id", | ||
"bitbucket_access_token", | ||
], | ||
}, | ||
output_parameters: { | ||
properties: { | ||
response: { type: Schema.types.string, title: "Response code" }, | ||
workspace: { type: Schema.types.string, title: "Bitbucket workspace ID" }, | ||
repo_slug: { type: Schema.types.string, title: "Repository ID" }, | ||
pull_request_id: { | ||
type: Schema.types.string, | ||
description: "ID of the pull request to be merged", | ||
title: "Pull request ID", | ||
}, | ||
}, | ||
required: [], | ||
}, | ||
}); |
45 changes: 45 additions & 0 deletions
45
src/connectors/atlassian.bitbucket/functions/merge_pull_request_test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import { assertEquals, assertExists } from "../../../dev_deps.ts"; | ||
import { DefineWorkflow } from "../../../dev_deps.ts"; | ||
import MergePullRequest from "./merge_pull_request.ts"; | ||
|
||
Deno.test("MergePullRequest can be used as a Slack function in a workflow step", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_MergePullRequest_slack_function", | ||
title: "Test MergePullRequest", | ||
description: "This is a generated test to test MergePullRequest", | ||
}); | ||
testWorkflow.addStep(MergePullRequest, { | ||
workspace: "test", | ||
repo_slug: "test", | ||
pull_request_id: "test", | ||
bitbucket_access_token: "test", | ||
}); | ||
const actual = testWorkflow.steps[0].export(); | ||
|
||
assertEquals(actual.function_id, "A05Q8KLHEHJ#/functions/merge_pull_request"); | ||
assertEquals(actual.inputs, { | ||
workspace: "test", | ||
repo_slug: "test", | ||
pull_request_id: "test", | ||
bitbucket_access_token: "test", | ||
}); | ||
}); | ||
|
||
Deno.test("All outputs of Slack function MergePullRequest should exist", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_MergePullRequest_slack_function", | ||
title: "Test MergePullRequest", | ||
description: "This is a generated test to test MergePullRequest", | ||
}); | ||
const step = testWorkflow.addStep(MergePullRequest, { | ||
workspace: "test", | ||
repo_slug: "test", | ||
pull_request_id: "test", | ||
bitbucket_access_token: "test", | ||
}); | ||
assertExists(step.outputs.response); | ||
assertExists(step.outputs.workspace); | ||
assertExists(step.outputs.repo_slug); | ||
assertExists(step.outputs.pull_request_id); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import CreateIssue from "./functions/create_issue.ts"; | ||
import MergePullRequest from "./functions/merge_pull_request.ts"; | ||
|
||
const AtlassianBitbucket = { | ||
functions: { | ||
/** | ||
* @see The {@link https://api.slack.com/reference/connectors/atlassian.bitbucket/create_issue CreateIssue} documentation. | ||
*/ | ||
CreateIssue, | ||
/** | ||
* @see The {@link https://api.slack.com/reference/connectors/atlassian.bitbucket/merge_pull_request MergePullRequest} documentation. | ||
*/ | ||
MergePullRequest, | ||
}, | ||
} as const; | ||
|
||
export default AtlassianBitbucket; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import { DefineConnector } from "../../../deps.ts"; | ||
import { Schema } from "../../../deps.ts"; | ||
|
||
export default DefineConnector({ | ||
callback_id: "A05Q7MZ8WH1#/functions/send_email", | ||
title: "Send an email", | ||
input_parameters: { | ||
properties: { | ||
subject: { | ||
type: Schema.types.string, | ||
description: "Enter text", | ||
title: "Subject", | ||
}, | ||
email_body: { | ||
type: Schema.slack.types.rich_text, | ||
description: "Enter text", | ||
title: "Email body", | ||
}, | ||
recipients: { | ||
type: Schema.types.array, | ||
description: "Search all people...", | ||
title: "Recipients", | ||
items: { type: Schema.slack.types.user_id }, | ||
}, | ||
additional_recipients: { | ||
type: Schema.types.array, | ||
description: "Enter email addresses", | ||
title: "Additional Recipients", | ||
items: { type: Schema.types.string }, | ||
}, | ||
cc_recipients: { | ||
type: Schema.types.array, | ||
description: "Enter email addresses", | ||
title: "CC Recipients", | ||
items: { type: Schema.types.string }, | ||
}, | ||
bcc_recipients: { | ||
type: Schema.types.array, | ||
description: "Enter email addresses", | ||
title: "BCC Recipients", | ||
items: { type: Schema.types.string }, | ||
}, | ||
google_access_token: { | ||
type: Schema.slack.types.oauth2, | ||
description: "Google access token", | ||
title: "Google access token", | ||
}, | ||
}, | ||
required: ["subject", "email_body", "google_access_token"], | ||
}, | ||
output_parameters: { properties: {}, required: [] }, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import { assertEquals } from "../../../dev_deps.ts"; | ||
import { DefineWorkflow } from "../../../dev_deps.ts"; | ||
import SendEmail from "./send_email.ts"; | ||
|
||
Deno.test("SendEmail can be used as a Slack function in a workflow step", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_SendEmail_slack_function", | ||
title: "Test SendEmail", | ||
description: "This is a generated test to test SendEmail", | ||
}); | ||
testWorkflow.addStep(SendEmail, { | ||
subject: "test", | ||
email_body: "test", | ||
google_access_token: "test", | ||
}); | ||
const actual = testWorkflow.steps[0].export(); | ||
|
||
assertEquals(actual.function_id, "A05Q7MZ8WH1#/functions/send_email"); | ||
assertEquals(actual.inputs, { | ||
subject: "test", | ||
email_body: "test", | ||
google_access_token: "test", | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import SendEmail from "./functions/send_email.ts"; | ||
|
||
const GoogleMail = { | ||
functions: { | ||
/** | ||
* @see The {@link https://api.slack.com/reference/connectors/google.mail/send_email SendEmail} documentation. | ||
*/ | ||
SendEmail, | ||
}, | ||
} as const; | ||
|
||
export default GoogleMail; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.