rematocorp / trello-integration-action

GitHub action for connecting GitHub PRs and Trello cards — moves cards, adds labels & people, and more
MIT License
18 stars 11 forks source link

Support for multiple Boards #68

Closed justwiebe closed 9 months ago

justwiebe commented 9 months ago

One of the teams in my company has multiple trello boards for a single repository (a product that we license out to multiple customers, and each customer has their own board). Would it be possible to add support for multiple Trello boards?

ukupat commented 9 months ago

Very good question. We have also struggled a bit with this issue. I assume that the card is already on the correct board when you create a PR? Or should the integration also move it to the correct board before moving it to the desired column (for instance you have a separate backlog board)?

I have two ideas which I could implement next week when either of them helps your team:

  1. Allow to pass array of list IDs via trello-list-id-pr-open/draft/closed so the action could move the card to one of the list that exists on the current board where the card is. This should solve the case where the card is already on the correct board.
  2. Allow to pass a map of board IDs via trello-board-id so the action would know from which board (backlog Foo, backlog Bar) should the ticket move to what board (focus Foo, focus Bar). This should solve the case of moving the card also to the right board.

One more idea: I could introduce trello-list-name-pr-open/draft/closed so you don't have to set an id but instead list name like "In progress" and "Code review". But this would only work when your boards use consistent naming 🤔

justwiebe commented 9 months ago

I believe the card is already on the correct board, so option 1 would probably work great for us. Thanks!

ukupat commented 9 months ago

Alright! I will let you know when you can test it out :)

ukupat commented 9 months ago

@justwiebe please try out v8.1.0 and let me know if this works for your team :)

ukupat commented 9 months ago

Closing the issue for now. Let me know if you need any help!

justwiebe commented 8 months ago

@ukupat Thanks for the quick work! My team just got this up and running and it's working great for them!

ukupat commented 8 months ago

Great to hear that!