This repository serves as a central place to apply labels to Github repositories of the prisma organization.
It uses maticzav/label-sync by @maticzav to sync the configuration held in this repository to all the repositories defined.
- First add the repository to the list of defined repositories (
importand entry inreposobject) - Then actually create the file you just imported in the
repositoriesdirectory. You can use one of the existing files in that directory as a template. (update theexport constand make sure the configured labels make sense)
Note: The current configuration uses lowerCamelCase for the repositories, so a repository prisma/prisma-labelsync is represented as prismaLabelsync (the org is dropped, as all most the repos live in prisma) for example which is then used in the import and also filename.
- Find the repository configuration file here and add, update or remove the label
- If the expected label is not present in that file directly, the code should tell you where it comes from (e.g. one of the common sets of labels) and where you can update it
label-sync supports renaming labels via the alias property. Rename the label, then add a alias property with a list of the old names for label-sync to be able to make the connection and rename instead of deleting the old and creating a new label.
- When you create a Pull Request your changes (with
labelsync.ymlgenerated changes via e.g. the precommit hook) will automatically be "dry run" by the GitHub App and a comment will be posted which summarizes the expected changes. - When you create a Pull Request your changes (without
labelsync.ymlgenerated changes) you can comment/labelsyncon the PR to trigger a Github Actions that runs the generation for you and commits the file to your PR branch. This way you can also edit the source code via Github UI for example. The Github app will automatically "dry run" and a comment will be posted which summarizes the expected changes. - On merge, the changes will then be applied to the repositories.