/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-15 23:46:26 UTC
  • mfrom: (7445.1.2 merge-proposal-text)
  • Revision ID: breezy.the.bot@gmail.com-20200115234626-pse9aal287ya110e
Add Hoster.merge_proposal_description_format and common function for determining title.

Merged from https://code.launchpad.net/~jelmer/brz/merge-proposal-text/+merge/377672

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()"