Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🏗 Convert all OWNERS.yaml files to JSON5 format #24934

Merged
merged 6 commits into from Oct 7, 2019

Conversation

rcebulko
Copy link
Contributor

@rcebulko rcebulko commented Oct 7, 2019

Created with this conversion script

To generate this PR, each OWNERS.yaml file was parsed and then re-written in JSON5 format. The original YAML files were deleted. The accuracy of this transition was verified by parsing the new vs old OWNERS file sets and verifying that the output ownership tree was identical.

This should be submitted as soon as possible to reduce risk of merge conflicts. It's better to do it like this (rather than leave both YAML and JSON versions in place) so there is less risk of contributors editing the deprecated YAML files. Note that the parser will still support YAML (ie. it won't break anything if someone checks in an old YAML file), and I'm still being notified of all OWNERS/OWNERS.yaml changes, so I can catch anyone who tries 👮‍♂️

The new owners files point to the updated example OWNERS file.

Related to ampproject/amp-github-apps#442

@rcebulko rcebulko requested a review from mrjoro October 7, 2019 16:07
Copy link
Contributor

@rsimha rsimha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a couple of comments below.

OWNERS Show resolved Hide resolved
OWNERS Outdated Show resolved Hide resolved
@rcebulko
Copy link
Contributor Author

rcebulko commented Oct 7, 2019

For posterity: This PR will be submitted with a failing owners check because it modifies owners files without extensions, but I have ownership of all owners files and it's a no-op change that does not actually change any rules.

@rsimha rsimha merged commit a5785e6 into ampproject:master Oct 7, 2019
@rcebulko rcebulko deleted the json branch October 7, 2019 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants