/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-15 23:31:48 UTC
  • mto: This revision was merged to the branch mainline in revision 7446.
  • Revision ID: jelmer@jelmer.uk-20200115233148-ha9qo28psnlnbaej
Add Hoster.merge_proposal_description_format and common function for determining title.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import os
23
23
 
24
24
from ...propose import (
 
25
    determine_title,
25
26
    Hoster,
26
27
    HosterLoginRequired,
27
28
    MergeProposal,
71
72
        return f.read().strip()
72
73
 
73
74
 
74
 
def determine_title(description):
75
 
    return description.splitlines()[0]
76
 
 
77
 
 
78
75
class ValidationFailed(errors.BzrError):
79
76
 
80
77
    _fmt = "GitHub validation failed: %(error)s"
240
237
 
241
238
    supports_merge_proposal_labels = True
242
239
    supports_merge_proposal_commit_message = False
 
240
    merge_proposal_description_format = 'markdown'
243
241
 
244
242
    def __repr__(self):
245
243
        return "GitHub()"