/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-01-02 20:22:45 UTC
  • mfrom: (0.431.63 trunk)
  • mto: This revision was merged to the branch mainline in revision 7239.
  • Revision ID: jelmer@jelmer.uk-20190102202245-i317zf85xj5i94j6
Merge support for 'brz my-proposals'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
 
137
137
class GitHub(Hoster):
138
138
 
 
139
    name = 'github'
 
140
 
139
141
    supports_merge_proposal_labels = True
140
142
 
141
143
    def __repr__(self):
236
238
            raise UnsupportedHoster(branch)
237
239
        return cls()
238
240
 
 
241
    @classmethod
 
242
    def iter_instances(cls):
 
243
        yield cls()
 
244
 
 
245
    def iter_my_proposals(self):
 
246
        for issue in self.gh.search_issues(
 
247
                query='is:pr is:open author:%s' % self.gh.get_user().login):
 
248
            yield GitHubMergeProposal(issue.pull_request)
 
249
 
239
250
 
240
251
class GitHubMergeProposalBuilder(MergeProposalBuilder):
241
252