Snippets

Ivan E. Making tickets in Bitbucket

Created by Ivan E.
execfile( 'bitbucket_connect.py' )

# title: The title of the new issue.
# content: The content of the new issue.
# component: The component associated with the issue.
# milestone: The milestone associated with the issue.
# version: The version associated with the issue.
# responsible: The username of the person responsible for the issue.
# status: The status of the issue (new, open, resolved, on hold, invalid, duplicate, or wontfix).
# kind: The kind of issue (bug, enhancement, or proposal).

paper = 'Joint modeling of cell and nuclear shape variation'
URL = 'http://www.molbiolcell.org/content/early/2015/08/30/mbc.E15-06-0370.full.pdf+html'
authors = 'Johnson et al.'
year = '2015'
journal = 'MBoC'
figures = ['1','2','3a','3b','7']
slug = 'cellorganizer'
component = 'demos and tasks'
milestone = 'cell_and_nuclear_shape_variation'
status = 'new'
kind = 'task'

for figure in figures:
    success, result = bb.issue.create( title = 'Add a demo/tasks that ' + \ 
    'produces Figure ' + figure + ' from ' + authors + ' (' + year + ') ' + \ 
    journal + '.', content = 'Add a demo/task that produces Figure ' + \ 
    figure + ' from ' + authors + ' (' + year + ') ' + paper + \
    '. For information about the figure refer to ' + URL + '.', \
    component=component, milestone=milestone, status=status, kind=kind )

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.