/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: 2019-06-03 23:48:08 UTC
  • mfrom: (7316 work)
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190603234808-15yk5c7054tj8e2b
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    MergeProposalBuilder,
28
28
    MergeProposalExists,
29
29
    PrerequisiteBranchUnsupported,
 
30
    CommitMessageUnsupported,
30
31
    UnsupportedHoster,
31
32
    )
32
33
 
122
123
    def get_description(self):
123
124
        return self._pr.body
124
125
 
 
126
    def get_commit_message(self):
 
127
        return None
 
128
 
125
129
    def set_description(self, description):
126
130
        self._pr.edit(body=description, title=determine_title(description))
127
131
 
173
177
    name = 'github'
174
178
 
175
179
    supports_merge_proposal_labels = True
 
180
    supports_merge_proposal_commit_message = False
176
181
 
177
182
    def __repr__(self):
178
183
        return "GitHub()"
346
351
        return None
347
352
 
348
353
    def create_proposal(self, description, reviewers=None, labels=None,
349
 
                        prerequisite_branch=None):
 
354
                        prerequisite_branch=None, commit_message=None):
350
355
        """Perform the submission."""
351
356
        if prerequisite_branch is not None:
352
357
            raise PrerequisiteBranchUnsupported(self)
 
358
        # Note that commit_message is ignored, since github doesn't support it.
353
359
        import github
354
360
        # TODO(jelmer): Probe for right repo name
355
361
        if self.target_repo_name.endswith('.git'):