Skip to content

Commit 4d36cfc

Browse files
authored
Merge branch 'master' into adolfo/money-1950-remove-actioncable-from-sdk
2 parents 040a7c4 + 9235dbb commit 4d36cfc

File tree

80 files changed

+1488
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1488
-322
lines changed

.github/workflows/publish-marketplace-content.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ jobs:
4747
shell: bash {0} # don't fast fail
4848
run: |
4949
printf -v added_modified_renamed_files '%s,%s' '${{ steps.files.outputs.added_modified }}' '${{ steps.files.outputs.renamed }}'
50-
pnpm dlx ts-node --esm scripts/updateMarketplaceReadme.mts $added_modified_renamed_files
50+
pnpm dlx tsx scripts/updateMarketplaceReadme.mts $added_modified_renamed_files

components/github/actions/common/constants.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const PULL_REQUEST_STATES = [
66
"PENDING",
77
];
88

9+
const LIMIT = 100;
10+
911
export default {
1012
PULL_REQUEST_STATES,
13+
LIMIT,
1114
};

components/github/actions/create-branch/create-branch.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "github-create-branch",
66
name: "Create Branch",
77
description: "Create a new branch in a Github repo. [See the documentation](https://docs.github.com/en/rest/git/refs?apiVersion=2022-11-28#create-a-reference)",
8-
version: "0.0.13",
8+
version: "0.0.14",
99
type: "action",
1010
props: {
1111
github,

components/github/actions/create-gist/create-gist.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "github-create-gist",
66
name: "Create Gist",
77
description: "Allows you to add a new gist with one or more files. [See the documentation](https://docs.github.com/en/rest/gists/gists?apiVersion=2022-11-28#create-a-gist)",
8-
version: "0.0.7",
8+
version: "0.0.8",
99
type: "action",
1010
props: {
1111
github,

components/github/actions/create-issue-comment/create-issue-comment.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "github-create-issue-comment",
55
name: "Create Issue Comment",
66
description: "Create a new comment in a issue. [See the documentation](https://docs.github.com/en/rest/issues/comments#create-an-issue-comment)",
7-
version: "0.0.18",
7+
version: "0.0.19",
88
type: "action",
99
props: {
1010
github,

components/github/actions/create-issue/create-issue.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "github-create-issue",
77
name: "Create Issue",
88
description: "Create a new issue in a Gihub repo. [See the documentation](https://docs.github.com/en/rest/issues/issues#create-an-issue)",
9-
version: "0.3.0",
9+
version: "0.3.1",
1010
type: "action",
1111
props: {
1212
github,

components/github/actions/create-or-update-file-contents/create-or-update-file-contents.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "github-create-or-update-file-contents",
55
name: "Create or Update File Contents",
66
description: "Create or update a file in a repository. [See the documentation](https://docs.github.com/en/rest/repos/contents#create-or-update-file-contents)",
7-
version: "0.1.0",
7+
version: "0.1.1",
88
type: "action",
99
props: {
1010
github,

components/github/actions/create-pull-request/create-pull-request.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "github-create-pull-request",
66
name: "Create Pull Request",
77
description: "Creates a new pull request for a specified repository. [See the documentation](https://docs.github.com/en/rest/pulls/pulls#create-a-pull-request)",
8-
version: "0.1.0",
8+
version: "0.1.1",
99
type: "action",
1010
props: {
1111
github,

components/github/actions/create-repository/create-repository.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "github-create-repository",
55
name: "Create Repository",
66
description: "Creates a new repository for the authenticated user. [See the documentation](https://docs.github.com/en/rest/repos/repos#create-a-repository-for-the-authenticated-user)",
7-
version: "0.0.13",
7+
version: "0.0.14",
88
type: "action",
99
props: {
1010
github,
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import { ConfigurationError } from "@pipedream/platform";
2+
import github from "../../github.app.mjs";
3+
4+
export default {
5+
key: "github-create-workflow-dispatch",
6+
name: "Create Workflow Dispatch",
7+
description: "Creates a new workflow dispatch event. [See the documentation](https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
github,
12+
repoFullname: {
13+
propDefinition: [
14+
github,
15+
"repoFullname",
16+
],
17+
},
18+
workflowId: {
19+
propDefinition: [
20+
github,
21+
"workflowId",
22+
({ repoFullname }) => ({
23+
repoFullname,
24+
}),
25+
],
26+
},
27+
ref: {
28+
type: "string",
29+
label: "Ref",
30+
description: "The git reference for the workflow. The reference can be a branch or tag name.",
31+
},
32+
inputs: {
33+
type: "object",
34+
label: "Inputs",
35+
description: "Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when inputs are omitted.",
36+
optional: true,
37+
},
38+
},
39+
async run({ $ }) {
40+
try {
41+
const response = await this.github.createWorkflowDispatch({
42+
repoFullname: this.repoFullname,
43+
workflowId: this.workflowId,
44+
data: {
45+
ref: this.ref,
46+
inputs: this.inputs,
47+
},
48+
});
49+
50+
$.export("$summary", "Workflow dispatch successfully created!");
51+
52+
return response;
53+
} catch (e) {
54+
throw new ConfigurationError(e?.response?.data?.message);
55+
}
56+
},
57+
};

0 commit comments

Comments
 (0)