Skip to content
check-square

GitHub Action

github-commit-to-trello-card

v3 Latest version

github-commit-to-trello-card

check-square

github-commit-to-trello-card

GitHub Action to attach GitHub commits and pull requests to a Trello card

Installation

Copy and paste the following snippet into your .yml file.

              

- name: github-commit-to-trello-card

uses: dalezak/github-commit-to-trello-card@v3

Learn more about this action in dalezak/github-commit-to-trello-card

Choose a version

GitHub-Commit-To-Trello-Card

GitHub Action to attach GitHub commits and pull requests to a Trello card

Action Marketplace

https://github.com/marketplace/actions/github-commit-to-trello-card

Action Variables

  • trello-api-key - Trello API key, visit https://trello.com/app-key for key
  • trello-auth-token - Trello auth token, visit https://trello.com/app-key then click generate a token
  • trello-board-id - Trello board ID, visit a board then append .json to url to find id
  • trello-card-action - Trello card action, either "Comment" or "Attachment"
  • trello-list-name-commit - Trello list name for new commit, for example "Doing", "In Progress", etc
  • trello-list-name-pr-open - Trello list name for open pull request, for example "Reviewing", "In Review", etc
  • trello-list-name-pr-closed - Trello list name for closed pull request, for example "Testing", "Done", etc
  • trello-card-id-pattern - Trello Card ID Pattern, default is #{CardNumber}

Git Commit

git add .
git commit -m "Add this commit to Trello card #123"
git push

GitHub Action

name: GitHub Commit To Trello Comment

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - uses: dalezak/github-commit-to-trello-card@main
        with:
          trello-api-key: ${{ secrets.TRELLO_KEY }}
          trello-auth-token: ${{ secrets.TRELLO_TOKEN }}
          trello-board-id: ${{ secrets.TRELLO_BOARD }}
          trello-card-action: "Attachment"
          trello-list-name-commit: "Doing"
          trello-list-name-pr-open: "Reviewing"
          trello-list-name-pr-closed: "Testing"

Local Build

npm run build

Release Build

git tag -a "v2" -m "v2"
git push origin --tags