-
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (40 loc) · 1.35 KB
/
issue.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Integrate Issue
on:
issues:
types: [opened, reopened, edited, closed]
jobs:
issue_integration:
runs-on: ubuntu-latest
name: Integrate Issue
env:
TRELLO_API_KEY: ${{ secrets.TRELLO_API_KEY }}
TRELLO_API_TOKEN: ${{ secrets.TRELLO_API_TOKEN }}
TRELLO_BOARD_ID: ${{ secrets.TRELLO_BOARD_ID }}
TRELLO_TODO_LIST_ID: ${{ secrets.TRELLO_TODO_LIST_ID }}
TRELLO_DONE_LIST_ID: ${{ secrets.TRELLO_DONE_LIST_ID }}
TRELLO_MEMBER_MAP: ${{ secrets.TRELLO_MEMBER_MAP }}
steps:
- name: Create Card
id: card-create
if: ${{ github.event.action == 'opened' }}
uses: CyanRYi/[email protected]
with:
trello-action: create_card
- name: Edit Card
id: card-edit
if: ${{ github.event.action == 'edited' }}
uses: CyanRYi/[email protected]
with:
trello-action: edit_card
- name: Close Card
id: card-move-to-done
if: ${{ github.event.action == 'closed' }}
uses: CyanRYi/[email protected]
with:
trello-action: move_card_to_done
- name: Reopen Card
id: card-move-to-backlog
if: ${{ github.event.action == 'reopened' }}
uses: CyanRYi/[email protected]
with:
trello-action: move_card_to_todo