#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

@@ -73,3 +73,13 @@ $ tracker archive $trainIteration.previous
* Update versions in Sagan with `$ sagan update $releasetrains`.
* Announce release (Blog, Twitter) and notify downstream dependency projects as needed. Dev-tools can assist you with `$ announcement $trainIteration`. Make sure to remove the changelog link to Envers as this module has no changelog.
### Utilities
#### GitHub Labels
`ProjectLabelConfiguration` contains a per-project configuration which labels should be present in a project. To apply that configuration (create or update), use:
```
$ github update labels $project
```

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);
}
}