use of org.shipkit.gradle.notes.FetchGitHubContributorsTask in project shipkit by mockito.
the class GitHubContributorsPlugin method apply.
public void apply(final Project project) {
final ShipkitConfiguration conf = project.getPlugins().apply(ShipkitConfigurationPlugin.class).getConfiguration();
final FetchGitHubContributorsTask task = TaskMaker.task(project, FETCH_CONTRIBUTORS, FetchGitHubContributorsTask.class, new Action<FetchGitHubContributorsTask>() {
@Override
public void execute(final FetchGitHubContributorsTask task) {
task.setDescription("Fetch info about all project contributors and store it in file");
task.setOutputFile(contributorsFile(project));
task.setEnabled(conf.getTeam().getContributors().isEmpty());
task.setIgnoredContributors(conf.getTeam().getIgnoredContributors());
}
});
task.setDescription("Fetch info about all project contributors from GitHub and store it in file");
task.setApiUrl(conf.getGitHub().getApiUrl());
task.setReadOnlyAuthToken(conf.getGitHub().getReadOnlyAuthToken());
task.setRepository(conf.getGitHub().getRepository());
}
Aggregations