Skip to content

GitHub Action to attach GitHub commits and pull requests as a comment in a Trello card

License

Notifications You must be signed in to change notification settings

mtomady/github-commit-to-trello-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • key-prefix - Prefix to be used in commit/pull requests in front of Trello card IDs, for example "TECH-", default: "#"

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"
          key-prefix: "TECH-"

Local Build

npm run build

Release Build

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

About

GitHub Action to attach GitHub commits and pull requests as a comment in a Trello card

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%