Daniel Jaglowski 40b485f08a Update core for v0.90.0 release (#29539) 1 рік тому
..
Makefile 8823777481 [chore] enforce validation of codeowners membership (#24638) 1 рік тому
README.md 8823777481 [chore] enforce validation of codeowners membership (#24638) 1 рік тому
allowlist.txt 88b99d7ea0 [chore]update allowlist to match membership (#29097) 1 рік тому
codeowners.go 4ea95dcb29 [chore] generate issue templates with githubgen (#28655) 1 рік тому
go.mod 40b485f08a Update core for v0.90.0 release (#29539) 1 рік тому
go.sum 40b485f08a Update core for v0.90.0 release (#29539) 1 рік тому
issuetemplates.go 4ea95dcb29 [chore] generate issue templates with githubgen (#28655) 1 рік тому
main.go edce001a1b [chore] remove dependabot config for gomod (#29472) 1 рік тому
metadata.yaml ba90c67433 [chore] [cmd/githubgen] Add codeowner (#24555) 1 рік тому

README.md

githubgen

This executable is used to generate the .github/CODEOWNERS and .github/ALLOWLIST files.

It reads status metadata from metadata.yaml files located throughout the repository.

It checks that codeowners are known members of the OpenTelemetry organization.

Usage

$> make gengithub

The equivalent of:

$> cd cmd/githubgen && $(GOCMD) install .
$> GITHUB_TOKEN=<mypattoken> githubgen --folder . [--allowlist cmd/githubgen/allowlist.txt] 

Checking codeowners against OpenTelemetry membership via Github API

To authenticate, set the environment variable GITHUB_TOKEN to a PAT token.

For each codeowner, the script will check if the user is registered as a member of the OpenTelemetry organization.

If any codeowner is missing, it will stop and print names of missing codeowners.

These can be added to allowlist.txt as a workaround.

If a codeowner is present in allowlist.txt and also a member of the OpenTelemetry organization, the script will error out.