Skip to content

Commit

Permalink
Support for Bamboo
Browse files Browse the repository at this point in the history
  • Loading branch information
redaxmedia committed Dec 11, 2019
1 parent 42f7e83 commit fb3a732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chroma_feedback/provider/bamboo/normalize.py
Expand Up @@ -7,13 +7,11 @@ def normalize_data(project : Dict[str, Any]) -> Dict[str, Any]:
'provider': 'bamboo',
'slug': project['key'],
'active': True,
'status': normalize_status(project['buildState'].lower(), project['lifeCycleState'].lower())
'status': normalize_status(project['buildState'].lower())
}


def normalize_status(status : str, lifecycle : str) -> str:
if lifecycle == 'inprogress':
return 'process'
def normalize_status(status : str) -> str:
if status == 'failed':
return 'failed'
return 'passed'
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -19,6 +19,7 @@
'chroma_feedback',
'chroma_feedback.provider',
'chroma_feedback.provider.appveyor',
'chroma_feedback.provider.bamboo',
'chroma_feedback.provider.circle',
'chroma_feedback.provider.codeship',
'chroma_feedback.provider.github',
Expand Down

0 comments on commit fb3a732

Please sign in to comment.