|
| 1 | +name: Trello Integration |
| 2 | + |
| 3 | +on: |
| 4 | + issue_comment: |
| 5 | + types: [created, edited, deleted] |
| 6 | + pull_request: |
| 7 | + types: |
| 8 | + [opened, edited, closed, reopened, ready_for_review, converted_to_draft] |
| 9 | + |
| 10 | +jobs: |
| 11 | + build: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + steps: |
| 14 | + # Link PR to Trello |
| 15 | + - name: Link to Trello |
| 16 | + uses: rematocorp/[email protected] |
| 17 | + with: |
| 18 | + # REQUIRED |
| 19 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 20 | + |
| 21 | + # When set to true, match only URLs prefixed with “Closes” etc. |
| 22 | + # Just like https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword. |
| 23 | + # Default: false |
| 24 | + github-require-keyword-prefix: false |
| 25 | + |
| 26 | + # Throw an error if no Trello cards can be found in the PR description. |
| 27 | + # Default: false |
| 28 | + github-require-trello-card: false |
| 29 | + |
| 30 | + # Newline-separated list of mapping between Github username and Trello username. |
| 31 | + # Use it for people who have different usernames in Github and Trello. |
| 32 | + # If the current username is not in the list, we still try to find a Trello user with that username. |
| 33 | + github-users-to-trello-users: |- |
| 34 | + wtv:wtv |
| 35 | +
|
| 36 | + # REQUIRED: Trello API key, visit https://trello.com/app-key for key. |
| 37 | + trello-api-key: ${{ secrets.TRELLO_API_KEY }} |
| 38 | + |
| 39 | + # REQUIRED: Trello auth token, visit https://trello.com/app-key then click generate a token. |
| 40 | + trello-auth-token: ${{ secrets.TRELLO_API_TOKEN }} |
| 41 | + |
| 42 | + # Your organization name to avoid assigning cards to outside members, |
| 43 | + # edit your workspace details and look for the short name. |
| 44 | + trello-organization-name: cesium2324 |
| 45 | + |
| 46 | + # Trello board ID where to move the cards. |
| 47 | + # How to find board ID: https://stackoverflow.com/a/50908600/2311110 |
| 48 | + trello-board-id: 64c01c6ddfe475d0a4ee2f2a |
| 49 | + |
| 50 | + # Trello list ID for draft pull request. |
| 51 | + # Useful when you want to move the card back to In progress when ready PR is converted to draft. |
| 52 | + # How to find list ID: https://stackoverflow.com/a/50908600/2311110 |
| 53 | + trello-list-id-pr-draft: 654d17b1769ab53537f652f7 |
| 54 | + |
| 55 | + # Trello list ID for open pull request. |
| 56 | + # How to find list ID: https://stackoverflow.com/a/50908600/2311110 |
| 57 | + trello-list-id-pr-open: 654d1801fe9fdff5e4ad442b |
| 58 | + |
| 59 | + # Trello list ID for closed pull request. |
| 60 | + # How to find list ID: https://stackoverflow.com/a/50908600/2311110 |
| 61 | + trello-list-id-pr-closed: 654d17cc0ddb0bf601d881a0 |
| 62 | + |
| 63 | + # Enable or disable the automatic addition of labels to cards. |
| 64 | + # Default: true |
| 65 | + trello-add-labels-to-cards: true |
| 66 | + |
| 67 | + # When a card has one of these labels then branch category label is not assigned. |
| 68 | + trello-conflicting-labels: "" |
| 69 | + |
| 70 | + # When set to true, search for card also within the branch name (e.g. "1234-card-title"). |
| 71 | + # If card id is found, comments card URL. |
| 72 | + # Default: false |
| 73 | + trello-card-in-branch-name: false |
| 74 | + |
| 75 | + # Position of the card after being moved to a list. |
| 76 | + # Options: "top" or "bottom" |
| 77 | + # Default: "top" |
| 78 | + trello-card-position: "top" |
| 79 | + |
| 80 | + # Enable or disable the removal of unrelated users on Trello cards. |
| 81 | + # Default: true |
| 82 | + trello-remove-unrelated-members: true |
0 commit comments