in github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/PullRequestImportJob.java [65:105]
PullRequestImportJob create(
@Assisted("index") int jobIndex,
@Assisted("organisation") String organisation,
@Assisted("name") String repository,
@Assisted int pullRequestId,
@Assisted PullRequestImportType importType);
}
private static final Logger LOG = LoggerFactory.getLogger(PullRequestImportJob.class);
private static final String TOPIC_FORMAT = "GitHub #%d";
private final GitHubRepository ghRepository;
private final GitHubLogin ghLogin;
private final String organisation;
private final String repoName;
private final int prId;
private final GitRepositoryManager repoMgr;
private final AuthConfig authConfig;
private final int jobIndex;
private final ExternalIds externalIds;
private PullRequestCreateChange createChange;
private Optional<Project> project;
private GitJobStatus status;
private boolean cancelRequested;
private AccountImporter accountImporter;
@Inject
public PullRequestImportJob(
GitRepositoryManager repoMgr,
PullRequestCreateChange createChange,
ProjectCache projectCache,
AccountImporter accountImporter,
GitHubRepository.Factory gitHubRepoFactory,
ScopedProvider<GitHubLogin> ghLoginProvider,
ExternalIds externalIds,
AuthConfig authConfig,
@Assisted("index") int jobIndex,
@Assisted("organisation") String organisation,
@Assisted("name") String repoName,
@Assisted int pullRequestId) {