Skip to content

Commit e71e7d4

Browse files
chrisevans77chrisevans77cursoragentashwins01
authored
trello: add card comments, checklists, and checklist item update/delete (#21366)
* Add Trello card comments, checklists, and checklist item update/delete actions. Extends get-card with optional actions and checklists params, adds dedicated read/update/delete actions, and bumps @pipedream/trello to 1.7.0. * Address CodeRabbit feedback on Trello checklist actions. Share getCommaSeparatedString via common and use ConfigurationError for update validation. Co-authored-by: Cursor <cursoragent@cursor.com> * chore(trello): update package versions * chore(trello): update package version * Address Ashwin review feedback on Trello checklist actions. Share checklistFields and due props, clarify Premium limits and checklist IDs, and restore monotonic get-card versioning to 0.5.1. Co-authored-by: Cursor <cursoragent@cursor.com> * Simplify update-checklist-item param handling per CodeRabbit. Rely on Axios to strip undefined params, keep the empty-update guard, and pass radix 10 to parseInt for dueReminder. Co-authored-by: Cursor <cursoragent@cursor.com> * chore(trello): update package version --------- Co-authored-by: chrisevans77 <ce@3SX.localdomain> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Ashwin Srinivas <103921345+ashwins01@users.noreply.github.com> Co-authored-by: Ashwin Srinivas <ashwin.srinivas@workday.com>
1 parent 5ee86c8 commit e71e7d4

53 files changed

Lines changed: 533 additions & 51 deletions

File tree

Some content is hidden

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

components/trello/actions/add-attachment-to-card/add-attachment-to-card.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "trello-add-attachment-to-card",
77
name: "Add Attachment To Card",
88
description: "Adds a file attachment on a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-attachments-post)",
9-
version: "1.0.7",
9+
version: "1.0.8",
1010
annotations: {
1111
destructiveHint: false,
1212
openWorldHint: true,

components/trello/actions/add-checklist/add-checklist.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-add-checklist",
55
name: "Add Checklist",
66
description: "Adds a new checklist to a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-checklists-post).",
7-
version: "0.2.6",
7+
version: "0.2.7",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/trello/actions/add-comment/add-comment.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-add-comment",
55
name: "Add Comment",
66
description: "Create a new comment on a specific card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-actions-comments-post).",
7-
version: "0.2.6",
7+
version: "0.2.7",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/trello/actions/add-existing-label-to-card/add-existing-label-to-card.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-add-existing-label-to-card",
55
name: "Add Existing Label to Card",
66
description: "Adds an existing label to the specified card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-idlabels-post).",
7-
version: "0.1.6",
7+
version: "0.1.7",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/trello/actions/add-member-to-card/add-member-to-card.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-add-member-to-card",
55
name: "Add Member to Card",
66
description: "Adds a member to the specified card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-idmembers-post).",
7-
version: "0.2.6",
7+
version: "0.2.7",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/trello/actions/archive-card/archive-card.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-archive-card",
55
name: "Archive Card",
66
description: "Archives a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-put).",
7-
version: "0.2.6",
7+
version: "0.2.7",
88
annotations: {
99
destructiveHint: true,
1010
openWorldHint: true,

components/trello/actions/common/common.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,16 @@ export default {
1717
getMatches(foundObjects, query) {
1818
return foundObjects?.filter((obj) => obj.name.includes(query)) ?? [];
1919
},
20+
/**
21+
* Joins an array into a comma-separated string for Trello query params.
22+
*
23+
* @param {string[]|string} array An array of values, or a string passthrough.
24+
* @returns {string|undefined} The joined string, or the original non-array value.
25+
*/
26+
getCommaSeparatedString(array) {
27+
return Array.isArray(array)
28+
? array.join(",")
29+
: array;
30+
},
2031
},
2132
};

components/trello/actions/complete-checklist-item/complete-checklist-item.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-complete-checklist-item",
55
name: "Complete a Checklist Item",
66
description: "Completes an existing checklist item in a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-checkitem-idcheckitem-put).",
7-
version: "0.2.6",
7+
version: "0.2.7",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/trello/actions/create-board/create-board.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "trello-create-board",
66
name: "Create a Board",
77
description: "Create a new Trello board or copy from an existing one. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-post).",
8-
version: "0.2.6",
8+
version: "0.2.7",
99
annotations: {
1010
destructiveHint: false,
1111
openWorldHint: true,

components/trello/actions/create-card/create-card.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "trello-create-card",
88
name: "Create Card",
99
description: "Creates a new card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-post).",
10-
version: "1.0.8",
10+
version: "1.0.9",
1111
annotations: {
1212
destructiveHint: false,
1313
openWorldHint: true,

0 commit comments

Comments
 (0)