Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
f12d6b6
Add generated Ballerina connector
SashenkaG Jun 16, 2025
6d75d49
[Automated] Update the toml files
SashenkaG Jun 18, 2025
17a1196
Add openapi spec for trello
SashenkaG Jun 20, 2025
c5f7cb2
Generate connector for trello
SashenkaG Jun 20, 2025
1f250a4
Add test cases for trello connector
SashenkaG Jun 20, 2025
63d24bf
[Automated] Update the toml files
SashenkaG Jun 24, 2025
d59d162
[Automated] Update the toml files
SashenkaG Jun 24, 2025
1994f2a
[Automated] Update the toml files
SashenkaG Jun 24, 2025
1988ead
[Automated] Update the toml files
SashenkaG Jun 24, 2025
58952da
[Automated] Update the toml files
SashenkaG Jun 24, 2025
8877c66
Update copyright year and refactor test functions for improved clarity
SashenkaG Jun 25, 2025
c12f26d
[Automated] Update the toml files
SashenkaG Jun 25, 2025
b44b891
Simplify resource function implementations in mock_service.bal
SashenkaG Jun 25, 2025
1950eda
Update sanitation document
SashenkaG Jun 25, 2025
7bc3850
Refactor mock_service.bal and tests.bal for improved clarity and cons…
SashenkaG Jun 25, 2025
210d14e
[Automated] Update the toml files
SashenkaG Jun 25, 2025
df19790
Add keywords and icon to Ballerina.toml
SashenkaG Jun 25, 2025
116a523
Add icon image to ballerina directory
SashenkaG Jun 25, 2025
426d6ae
Add missing new lines in mock_service.bal and tests.bal for improved …
SashenkaG Jun 25, 2025
7dcfbd9
[Automated] Update the toml files
SashenkaG Jun 25, 2025
db0b832
Remove unnecessary parameters from resource function documentation in…
SashenkaG Jun 25, 2025
27c05a4
Fix in Ballerina.toml
SashenkaG Jun 25, 2025
d95e603
Fix formatting and update source link in sanitations.md
SashenkaG Jun 25, 2025
f471732
Update sanitations.md
SashenkaG Jun 25, 2025
fbec81e
Fix formatting and update command in sanitations.md
SashenkaG Jun 25, 2025
d586d47
Update ballerinaLangVersion to 2201.12.7 in gradle.properties
SashenkaG Jun 25, 2025
b4c2373
Update ballerinaGradlePluginVersion to 2.3.0 in gradle.properties
SashenkaG Jun 26, 2025
4d0c72c
Regenerate client and add copyright notice and license information to…
SashenkaG Jun 26, 2025
4da7fe9
Enhance README and testing documentation for Trello connector; add se…
SashenkaG Jun 26, 2025
f9d426d
Update README.md
SashenkaG Jun 26, 2025
0471ccb
Update README.md
SashenkaG Jun 26, 2025
4277fc0
Refactor README image placements
SashenkaG Jun 26, 2025
5bba5c3
Merge branch 'main' of https://github.com/SashenkaG/module-ballerinax…
SashenkaG Jun 26, 2025
5c974c0
Merge branch 'ballerina-platform:main' into main
SashenkaG Jun 27, 2025
244ad5a
Update .gitignore, README, and test configurations; add new dependenc…
SashenkaG Jun 27, 2025
bfe7368
Add example for creating and retrieving a list and cards in Trello; i…
SashenkaG Jun 27, 2025
1d65804
Add example for creating and managing cards in Trello; include necess…
SashenkaG Jun 27, 2025
b8040fd
Remove local repository reference from Ballerina.toml for Create_card…
SashenkaG Jun 27, 2025
5138619
Remove local repository reference from Ballerina.toml for Create_list…
SashenkaG Jun 27, 2025
49e8d04
Update README.md to use absolute URLs for images in setup instructions
SashenkaG Jun 27, 2025
34e6506
Refactor README.md for clarity and consistency; update links and imag…
SashenkaG Jun 27, 2025
5cfb14c
Refactor test configuration to use hardcoded values for local testing…
SashenkaG Jun 27, 2025
ff7010d
[Automated] Update the toml files
SashenkaG Jun 27, 2025
a4a8133
Remove unused devcontainer and gitignore files from Create_card and C…
SashenkaG Jun 28, 2025
8162da9
Rename package in Ballerina.toml nad remove local dependency
SashenkaG Jun 28, 2025
eebf4ef
Rename package in Ballerina.toml to follow naming conventions and rem…
SashenkaG Jun 28, 2025
ab2f14d
Update configuration keys in README.md for Trello API to match naming…
SashenkaG Jun 28, 2025
e101b54
Fix formatting in README.md for Create_list example to enhance readab…
SashenkaG Jun 28, 2025
d288e54
Refactor Create_card and Create_list examples to improve error handli…
SashenkaG Jun 28, 2025
04e6117
Fix: Make build scripts executable
SashenkaG Jun 28, 2025
6874385
Update configuration in examples to use configurable variables
SashenkaG Jun 30, 2025
9430cb9
Update README.md to clarify configuration settings
SashenkaG Jun 30, 2025
7c43c51
updated tests.bal and README.md
SashenkaG Jun 30, 2025
8dd1824
Add README and renamed files
SashenkaG Jun 30, 2025
66cfa92
Deleted duplicate file
SashenkaG Jun 30, 2025
ae3033c
Remove Trello dependency from example configurations and update docum…
SashenkaG Jun 30, 2025
d284771
Fix example links in README to use lowercase directory names
SashenkaG Jun 30, 2025
ddfe419
Refactor README for clarity and formatting improvements
SashenkaG Jun 30, 2025
497f086
Add example for creating a card in the README
SashenkaG Jun 30, 2025
f21b18f
Update configuration keys in example documentation for consistency
SashenkaG Jun 30, 2025
92882cd
Merge branch 'ballerina-platform:main' into main
SashenkaG Jul 1, 2025
b701d9c
Delete Module.ms and package.md file
SashenkaG Jul 1, 2025
1c93df0
Remove alias from Trello module import statements in examples and doc…
SashenkaG Jul 1, 2025
d9dedfd
Merge branch 'ballerina-platform:main' into main
SashenkaG Jul 1, 2025
b7d1b1f
standardize capitalization in documentation and tests
SashenkaG Jul 1, 2025
008e8ad
Fix examples and documentation links for Trello connector usage
SashenkaG Jul 1, 2025
e383964
Fix wording in Trello connector setup instructions for clarity
SashenkaG Jul 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `ballerinax/trello` package provides APIs to connect and interact with [Trel

To use the Trello connector, you must have access to the Trello API through a Trello account and an API key and token generated from it. If you do not have a Trello account, you can sign up for one [here](https://id.atlassian.com/signup). You can generate your Trello API key and token by following the instructions at [Trello API Keys](https://developer.atlassian.com/cloud/trello/guides/rest-api/api-introduction/).

1. Visit https://trello.com/power-ups/admin and create a new powerup
1. Visit the [Trello powerups admin](https://trello.com/power-ups/admin) page and create a new powerup

![trello powerup](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-powerups.png)

Expand Down Expand Up @@ -89,10 +89,10 @@ bal run

## Examples

The `Trello` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/module-ballerinax-trello/tree/main/examples/), covering the following use cases:
The `Trello` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/ballerina-platform/module-ballerinax-trello/tree/main/examples), covering the following use cases:

1. [**Create and Retrieve a List and Cards in Trello**](examples/create_list/) - Create a new list in a specific Trello board and retrieve its details using the list ID.
2. [**Create, Update fetch add label to a Card in Trello**](examples/create_card/) - Create a new card in a Trello list and update the card's name and view it.
1. [**Create and retrieve a list and cards in Trello**](https://github.com/ballerina-platform/module-ballerinax-trello/tree/main/examples/create_list) - Create a new list in a specific Trello board and retrieve its details using the list ID.
2. [**Create, update fetch and add a label to a card in Trello**](https://github.com/ballerina-platform/module-ballerinax-trello/tree/main/examples/create_card) - Create a new card in a Trello list and update the card's name add a label to it and view it.

## Build from the source

Expand Down
6 changes: 3 additions & 3 deletions ballerina/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The `ballerinax/trello` package provides APIs to connect and interact with [Trel

To use the Trello connector, you must have access to the Trello API through a Trello account and an API key and token generated from it. If you do not have a Trello account, you can sign up for one [here](https://id.atlassian.com/signup). You can generate your Trello API key and token by following the instructions at [Trello API Keys](https://developer.atlassian.com/cloud/trello/guides/rest-api/api-introduction/).

1. Visit https://trello.com/power-ups/admin and create a new powerup
1. Visit [Trello powerups admin](https://trello.com/power-ups/admin) page and create a new powerup

![trello powerup](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-powerups.png)

Expand Down Expand Up @@ -84,5 +84,5 @@ bal run

The `Trello` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/module-ballerinax-trello/tree/main/examples/), covering the following use cases:

1. [**Create and Retrieve a List and Cards in Trello**](examples/create_list/) - Create a new list in a specific Trello board and retrieve its details using the list ID.
2. [**Create, Update fetch add label to a Card in Trello**](examples/create_card/) - Create a new card in a Trello list and update the card's name and view it.
1. [**Create and retrieve a list and cards in Trello**](https://github.com/ballerina-platform/module-ballerinax-trello/tree/main/examples/create_list) - Create a new list in a specific Trello board and retrieve its details using the list ID.
2. [**Create, update fetch and add a label to a card in Trello**](https://github.com/ballerina-platform/module-ballerinax-trello/tree/main/examples/create_card) - Create a new card in a Trello list and update the card's name add a label to it and view it.
3 changes: 1 addition & 2 deletions ballerina/tests/tests.bal
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ function testCreateNewList() returns error? {
"name": "My New Trello List"
};
TrelloList result = check trello->/lists.post({}, queries);
test:assertFalse(result !is TrelloList, msg = "Failed to call lists POST endpoint");
test:assertEquals((check result.name).toString(), "My New Trello List", msg = "Unexpected list name");
test:assertEquals((result.name).toString(), "My New Trello List", msg = "Unexpected list name");
}

@test:Config {
Expand Down
8 changes: 5 additions & 3 deletions examples/create_card/Create a card and add label.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Create, Update fetch add label to a Card in Trello
# Create, update fetch and add a label to a card in Trello

This example demonstrates how to use the Trello API with Ballerina to create a card in a specific Trello list, update its name, and add a label to it. This use case is useful for automating task management workflows where card creation, modification, and labeling are performed programmatically.

Expand All @@ -10,15 +10,17 @@ This example demonstrates how to use the Trello API with Ballerina to create a c

Refer to the [Setup guide](../../README.md) to obtain necessary credentials (client Id, client secret, tokens).

### 2. Board and List
### 2. Board and list

Before running the example, make sure you have:

- A valid **Board ID**
- A **List ID** under that board where the card will be created

You can retrieve the list ID from the URL of the list in Trello or by calling Trello's `GET /boards/{id}/lists` endpoint.

---

## Configuration

Create a file named `Config.toml` in the root directory of this example with the following content:
Expand All @@ -35,5 +37,5 @@ boardId = "<Your Trello Board ID>"
Execute the following command to run the example:

```bash
bal run
bal run
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Create and Retrieve a List and Cards in Trello
# Create and retrieve a list and cards in Trello

This example demonstrates how to use the Trello API with Ballerina to:

Expand Down
6 changes: 3 additions & 3 deletions examples/create_list/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ function getListById(string listId) returns error? {

public function main(string... args) returns error? {
if args.length() < 1 {
io:println("Usage: bal run [package_path] -- <listId>");
io:println("Usage: bal run [package_path] -- <boardId>");
return;
}
string listId = args[0];
string boardId = args[0];

string|error listIdResult = createNewList(listId);
string|error listIdResult = createNewList(boardId);
if listIdResult is error {
io:println("Failed to create list: ", listIdResult.message());
return listIdResult;
Expand Down
Loading