Skip to content

Commit 35e176f

Browse files
authored
Merging pull request #17958
1 parent 17fbcad commit 35e176f

File tree

4 files changed

+82
-3
lines changed

4 files changed

+82
-3
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import app from "../../trello.app.mjs";
2+
3+
export default {
4+
key: "trello-get-cards-in-list",
5+
name: "Get Cards In A List",
6+
description: "List the cards in a list. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-id-cards-get).",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
board: {
12+
propDefinition: [
13+
app,
14+
"board",
15+
],
16+
label: "Board ID",
17+
description: "The ID of the board containing the list",
18+
},
19+
listId: {
20+
propDefinition: [
21+
app,
22+
"lists",
23+
({ board }) => ({
24+
board,
25+
}),
26+
],
27+
type: "string",
28+
label: "List ID",
29+
description: "The ID of the list to get cards from",
30+
optional: false,
31+
},
32+
},
33+
async run({ $ }) {
34+
const {
35+
app,
36+
listId,
37+
} = this;
38+
39+
const response = await app.getCardsInList({
40+
$,
41+
listId,
42+
});
43+
44+
$.export("$summary", `Successfully retrieved \`${response.length}\` card(s) from list`);
45+
return response;
46+
},
47+
};
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import app from "../../trello.app.mjs";
2+
3+
export default {
4+
key: "trello-get-cards-on-board",
5+
name: "Get Cards On A Board",
6+
description: "Get all of the open Cards on a Board. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-cards-get).",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
boardId: {
12+
propDefinition: [
13+
app,
14+
"board",
15+
],
16+
label: "Board ID",
17+
description: "The ID of the board to get cards from",
18+
},
19+
},
20+
async run({ $ }) {
21+
const {
22+
app,
23+
boardId,
24+
} = this;
25+
26+
const response = await app.getCards({
27+
$,
28+
boardId,
29+
});
30+
31+
$.export("$summary", `Successfully retrieved \`${response.length}\` card(s) from board`);
32+
return response;
33+
},
34+
};

components/trello/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/trello",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "Pipedream Trello Components",
55
"main": "trello.app.mjs",
66
"keywords": [

pnpm-lock.yaml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)