/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/propose/github.py

Fix draft option for github merge proposals.

Merged from https://code.launchpad.net/~jelmer/brz/fix-github-draft/+merge/379253

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
            return json.loads(response.text)
281
281
        raise InvalidHttpResponse(path, response.text)
282
282
 
283
 
    def _create_pull(self, path, title, head, base, body=None, labels=None, assignee=None):
 
283
    def _create_pull(self, path, title, head, base, body=None, labels=None, assignee=None, draft=False):
284
284
        data = {
285
285
            'title': title,
286
286
            'head': head,
287
287
            'base': base,
 
288
            'draft': draft,
288
289
        }
289
290
        if labels is not None:
290
291
            data['labels'] = labels