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

dalezak/github-commit-to-trello-card

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 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
  • 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

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