#161 - Add documentation for GitHub label update.

This commit is contained in:
Mark Paluch
2020-11-12 15:32:19 +01:00
parent 214c9661d7
commit 2a54dd3ea6
2 changed files with 12 additions and 7 deletions

View File

@@ -43,13 +43,8 @@ class GitHubCommands extends TimedCommand {
@NonNull Executor executor;
@CliCommand(value = "github update labels")
public void createOrUpdateLabels(@CliOption(key = "", mandatory = false) Project project) {
if (project == null) {
// Projects.all().forEach(gitHubLabels::createOrUpdateLabels);
} else {
gitHubLabels.createOrUpdateLabels(project);
}
public void createOrUpdateLabels(@CliOption(key = "", mandatory = true) Project project) {
gitHubLabels.createOrUpdateLabels(project);
}
}