/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/gitlabs.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:
149
149
        self._mr['description'] = description
150
150
        self.gl._update_merge_requests(self._mr)
151
151
 
 
152
    def get_commit_message(self):
 
153
        return None
 
154
 
152
155
    def _branch_url_from_project(self, project_id, branch_name):
153
156
        project = self.gl._get_project(project_id)
154
157
        return gitlab_url_to_bzr_url(project['http_url_to_repo'], branch_name)
180
183
    """GitLab hoster implementation."""
181
184
 
182
185
    supports_merge_proposal_labels = True
 
186
    supports_merge_proposal_commit_message = False
183
187
 
184
188
    def __repr__(self):
185
189
        return "<GitLab(%r)>" % self.base_url
402
406
        return None
403
407
 
404
408
    def create_proposal(self, description, reviewers=None, labels=None,
405
 
                        prerequisite_branch=None):
 
409
                        prerequisite_branch=None, commit_message=None):
406
410
        """Perform the submission."""
 
411
        # https://docs.gitlab.com/ee/api/merge_requests.html#create-mr
407
412
        if prerequisite_branch is not None:
408
413
            raise PrerequisiteBranchUnsupported(self)
 
414
        # Note that commit_message is ignored, since Gitlab doesn't support it.
409
415
        # TODO(jelmer): Support reviewers
410
416
        source_project = self.gl._get_project(self.source_project_name)
411
417
        target_project = self.gl._get_project(self.target_project_name)