@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 31 lines 691 B view raw
1<?php 2 3final class NuanceGitHubRepositorySourceDefinition 4 extends NuanceSourceDefinition { 5 6 public function getName() { 7 return pht('GitHub Repository'); 8 } 9 10 public function getSourceDescription() { 11 return pht('Import issues and pull requests from a GitHub repository.'); 12 } 13 14 public function getSourceTypeConstant() { 15 return 'github.repository'; 16 } 17 18 public function hasImportCursors() { 19 return true; 20 } 21 22 protected function newImportCursors() { 23 return array( 24 id(new NuanceGitHubRepositoryImportCursor()) 25 ->setCursorKey('events.repository'), 26 id(new NuanceGitHubIssuesImportCursor()) 27 ->setCursorKey('events.issues'), 28 ); 29 } 30 31}