-
Notifications
You must be signed in to change notification settings - Fork 0
/
githello.py
47 lines (35 loc) · 1008 Bytes
/
githello.py
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
43
44
45
46
# -*- coding: utf-8 -*-
# std
import logging.config
# 3p
# project
from user import User
logging.config.fileConfig('logging.conf')
# create logger
logger = logging.getLogger('githello')
def run():
"""
Run
:param board_type:
:return:
"""
user = User()
for issue in user.github.load():
user.trello.update(issue)
run()
# Define objective
# Define use cases
# Place on heroku with cron
# Implement cache to tests
# Priority to Github
# A new github milestone has been created
# A trello card has been modified
# An existing github milestone has been updated
# An issue has been added to a milestone on Github
# Attributes sync
# Github milestone ==> Trello card with label Milestone
# Github milestone issue ==> Trello check list of the Milestone
# Github milestone issue state ==> Trello check list of the Milestone with the check attribute
# Github milestone assignee ==> Trello card member
# Github milestone deadline ==> Trello card deadline
# Github milestone name ==> Trello card name