#161 - Add documentation for GitHub label update.
This commit is contained in:
@@ -73,3 +73,13 @@ $ tracker archive $trainIteration.previous
|
|||||||
* Update versions in Sagan with `$ sagan update $releasetrains`.
|
* 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.
|
* 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
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -43,13 +43,8 @@ class GitHubCommands extends TimedCommand {
|
|||||||
@NonNull Executor executor;
|
@NonNull Executor executor;
|
||||||
|
|
||||||
@CliCommand(value = "github update labels")
|
@CliCommand(value = "github update labels")
|
||||||
public void createOrUpdateLabels(@CliOption(key = "", mandatory = false) Project project) {
|
public void createOrUpdateLabels(@CliOption(key = "", mandatory = true) Project project) {
|
||||||
|
gitHubLabels.createOrUpdateLabels(project);
|
||||||
if (project == null) {
|
|
||||||
// Projects.all().forEach(gitHubLabels::createOrUpdateLabels);
|
|
||||||
} else {
|
|
||||||
gitHubLabels.createOrUpdateLabels(project);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user