1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 11:22:40 +01:00
phorge-phorge/src/applications/nuance/source/NuanceGitHubRepositorySourceDefinition.php

30 lines
603 B
PHP
Raw Normal View History

<?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'),
);
}
}