/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

  • Committer: Jelmer Vernooij
  • Date: 2020-01-30 18:07:32 UTC
  • mfrom: (7472 work)
  • mto: This revision was merged to the branch mainline in revision 7473.
  • Revision ID: jelmer@jelmer.uk-20200130180732-6xcdyr3bhipain1k
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
553
553
        return None
554
554
 
555
555
    def create_proposal(self, description, reviewers=None, labels=None,
556
 
                        prerequisite_branch=None, commit_message=None):
 
556
                        prerequisite_branch=None, commit_message=None,
 
557
                        work_in_progress=False):
557
558
        """Perform the submission."""
558
559
        if prerequisite_branch is not None:
559
560
            raise PrerequisiteBranchUnsupported(self)
583
584
                title=title, body=description,
584
585
                head="%s:%s" % (self.source_owner, self.source_branch_name),
585
586
                base=self.target_branch_name,
586
 
                labels=labels, assignee=assignees)
 
587
                labels=labels, assignee=assignees,
 
588
                draft=(not work_in_progress))
587
589
        except ValidationFailed:
588
590
            raise MergeProposalExists(self.source_branch.user_url)
589
591
        return GitHubMergeProposal(self.gh, pull_request)