zendframework / maintainers

Contributors and maintainers information for Zend Framework.
BSD 3-Clause "New" or "Revised" License
50 stars 26 forks source link

New tool: sync:keywords - synchronize composer.json keywords with github topics #36

Closed michalbundyra closed 6 years ago

michalbundyra commented 6 years ago
$ zf-maintainer sync:keywords <github-token> -o|--org=<org> -r|--repo=<repo-pattern> [--dry-run]

Replaces all github topics with keywords from composer.json file (master branch) for repositories matching provided pattern <repo-pattern> in provided organization <org>. <repo-pattern> can be alphanumeric string with dashes and * to match any part of the repository name.

Here we have --dry-run result for following command:

$ bin/zf-maintainer sync:keywords <TOKEN> --org=zendframework --repo=zend-expressive* --dry-run

screenshot from 2017-11-24 14-33-03

On red we have marked topics to remove, cyan - keywords to add. In case we don't have any keywords in the composer.json there is an error message next to the repository name. Repositories are sorted by name, asc.

Resolves #35 /cc @Xerkus @froschdesign

weierophinney commented 6 years ago

I'd like to see one and/or both of the following changes:

The reason is that there are a number or github keywords that are useful, but we may not be using in composer.json files yet.

michalbundyra commented 6 years ago

@weierophinney it's updated now: 2ba5727

weierophinney commented 6 years ago

Thanks, @webimpress!