@smoca/trello-action-runner

This tool can automatically perform actions on Trello objects. Possible use-cases updating Trello boards as part of a build pipeline (e.g. after releasing a new version).

Usage no npm install needed!

<script type="module">
  import smocaTrelloActionRunner from 'https://cdn.skypack.dev/@smoca/trello-action-runner';
</script>

README

Trello Action Runner

Description

This tool can automatically perform actions on Trello objects. Possible use-cases updating Trello boards as part of a build pipeline (e.g. after releasing a new version).

Configuration

In its current state, the archiver can only be configured through environment variables.

The three credential variables must always be set:

  • TRELLO_API_KEY: API key from Trello (see here).
  • TRELLO_TOKEN: OAuth token from Trello (see here).
  • TRELLO_MEMBER: Unique member-ID from Trello (the text preceeded by an @-sign on the user profile page).

Run

After setting all the environment variables mentioned above, the script can be run like follows:

using npm

npm install && npm start <action_name>

or using yarn

yarn install && yarn start <action_name>

Available Actions

archiveListAndCreateNewOne

Renames a list on a specific board and create a new empty list. E.g. List "Done" will be renamed to "Done (v1.2)" and a new list "Done" is created.

Job config:

  • TRELLO_BOARD_NAME: The name of the board on which the list is to be archived.
  • TRELLO_LIST_NAME: The name of the list to rename.
  • TRELLO_ARCHIVED_LIST_NAME: The name to which the list will be renamed.

Changelog

0.1.4

  • Trello Action Runner is now linked to the node_modules/.bin folder and can be executed directly from a package.json script.