2.9 KiB
Updating TOC TAG and TOC SubProject README Files
This document outlines the process for updating the README files located in the tags and toc_subprojects directories. These README files are automatically generated and updated based on the content of the tags.yaml file.
The Single Source of Truth: tags.yaml
The tags.yaml file serves as the central source of information for generating and updating the README files for both TAGs and TOC SubProjects. To modify the content of these READMEs, you must update the tags.yaml file directly.
Who can Update:
Anyone can create a pull request in the cncf/toc repository, only TOC members can review and merge changes to the tags.yaml file.
How to Update:
-
Locate the
tags.yamlfile: This file is located at the root of thecncf/tocrepository: https://github.com/cncf/toc/blob/main/tags.yaml. -
Make your changes: Carefully edit the
tags.yamlfile to reflect the desired updates for the TAG or subproject README files. Ensure the YAML syntax is correct. -
Create a Pull Request (PR):
- Important: A PR that aims to update the TAG and subproject README files must only contain changes to the
tags.yamlfile. Any other changes in the PR will not trigger the automatic README updates.
- Important: A PR that aims to update the TAG and subproject README files must only contain changes to the
Automation in Action:
The github-project-automation and cncf-automation-bot handle the automatic updates of the README files based on your changes to tags.yaml:
-
Updates from a Branch within the
cncf/tocRepository:- When you create a PR from a branch within the
cncf/tocrepository that modifies only thetags.yamlfile, thegithub-project-automationwill automatically:- Generate the necessary updates to the relevant README files in the
tagsandtoc_subprojectsdirectories. - Push these updated README files as an additional commit to your existing PR.
- Generate the necessary updates to the relevant README files in the
- When you create a PR from a branch within the
-
Updates from a Fork of the
cncf/tocRepository:- If you create a PR from a fork of the
cncf/tocrepository that modifies only thetags.yamlfile, thecncf-automation-botwill:- Create a new PR on the
cncf/tocrepository. - This new PR will contain both your changes to the
tags.yamlfile and the automatically generated updates to the relevant README files. - The
cncf-automation-botwill automatically close the original PR from your fork and add comments to both the original and the new PR to link them.
- Create a new PR on the
- If you create a PR from a fork of the
Key Takeaway:
To update the README files in the tags and toc_subprojects directories, your PR must only include modifications to the tags.yaml file. The automation will then take care of generating and updating the corresponding README files.