A GitHub action that attaches GitHub links to Trello cards.
If you want to want to make sure PRs that mention Trello cards are attached to those Trello cards, add the following workflow your repo:
name: Trello Poster
on:
pull_request:
types: [created, edited]
jobs:
trello-poster:
runs-on: ubuntu-latest
steps:
- uses: lfdebrux/trello-poster-action@<SHA>
with:
comment-body: ${{ github.event.pull_request.body }}
github-url: ${{ github.event.pull_request.html_url }}
trello-api-token: ${{ secrets.TRELLO_API_TOKEN }}
trello-api-key: ${{ secrets.TRELLO_API_KEY }}
The Trello API requires that the calls provide both an API key and token. See the Trello API documentation for more details.
Required The body text of the pull request or issue comment that may contain the link to Trello.
Required The URL of the GitHub page you want to attach to the Trello card mentioned in comment-body
.
Required A Trello API key for the application.
Required A Trello API token for the Trello user.
Inspired by GitHub Trello Poster by @emmabeynon.
Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation.