mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 11:22:40 +01:00
30 lines
603 B
PHP
30 lines
603 B
PHP
|
<?php
|
||
|
|
||
|
final class NuanceGitHubRepositorySourceDefinition
|
||
|
extends NuanceSourceDefinition {
|
||
|
|
||
|
public function getName() {
|
||
|
return pht('GitHub Repository');
|
||
|
}
|
||
|
|
||
|
public function getSourceDescription() {
|
||
|
return pht('Import issues and pull requests from a GitHub repository.');
|
||
|
}
|
||
|
|
||
|
public function getSourceTypeConstant() {
|
||
|
return 'github.repository';
|
||
|
}
|
||
|
|
||
|
public function hasImportCursors() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
protected function newImportCursors() {
|
||
|
return array(
|
||
|
id(new NuanceGitHubRepositoryImportCursor())
|
||
|
->setCursorKey('events.repository'),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|