/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 typo: maintainerS_can_modify has an extra S, in GitHub pull requests.

Merged from https://code.launchpad.net/~jelmer/brz/github-extra-s/+merge/380393

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
 
238
238
    supports_merge_proposal_labels = True
239
239
    supports_merge_proposal_commit_message = False
 
240
    supports_allow_collaboration = True
240
241
    merge_proposal_description_format = 'markdown'
241
242
 
242
243
    def __repr__(self):
281
282
        raise InvalidHttpResponse(path, response.text)
282
283
 
283
284
    def _create_pull(self, path, title, head, base, body=None, labels=None,
284
 
                     assignee=None, draft=False, maintainers_can_modify=False):
 
285
                     assignee=None, draft=False, maintainer_can_modify=False):
285
286
        data = {
286
287
            'title': title,
287
288
            'head': head,
288
289
            'base': base,
289
290
            'draft': draft,
290
 
            'maintainers_can_modify': maintainers_can_modify,
 
291
            'maintainer_can_modify': maintainer_can_modify,
291
292
        }
292
293
        if labels is not None:
293
294
            data['labels'] = labels
568
569
            self.target_repo_name = self.target_repo_name[:-4]
569
570
        # TODO(jelmer): Allow setting title explicitly?
570
571
        title = determine_title(description)
571
 
        # TODO(jelmer): Set maintainers_can_modify?
572
572
        target_repo = self.gh._get_repo(
573
573
            self.target_owner, self.target_repo_name)
574
574
        assignees = []